Add dependencies for all Python packages, use release tags if latest

This commit is contained in:
Reinout Meliesie 2025-03-03 17:52:57 +01:00
parent 8f48f18f4a
commit b4248670b8
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
5 changed files with 81 additions and 7 deletions

View file

@ -1,8 +1,10 @@
{
fetchFromGitHub ,
pkgs,
stdenv ,
} :
with pkgs . python311Packages ;
with stdenv ;
mkDerivation {
@ -24,6 +26,14 @@ mkDerivation {
runHook preInstall
mkdir -p $out/lib/python3.11/site-packages
# Dependencies
ln -s ${boto3}/lib/python3.11/site-packages/* $out/lib/python3.11/site-packages/
ln -s ${botocore}/lib/python3.11/site-packages/* $out/lib/python3.11/site-packages/
# The package itself
cp -r $src/s3_tar $out/lib/python3.11/site-packages/
runHook postInstall