nix-packages/packages/python3.11-django-imagekit/package.nix

43 lines
927 B
Nix
Raw Permalink Normal View History

{
fetchFromGitHub ,
pkgs ,
stdenv ,
} :
with pkgs . python311Packages ;
with stdenv ;
mkDerivation {
pname = "python-django-imagekit" ;
version = "2024-07-22-4cbbc52" ;
2025-03-02 19:52:08 +01:00
src = fetchFromGitHub {
owner = "matthewwithanm" ;
repo = "django-imagekit" ;
rev = "4cbbc52fabfd99a6306cdbb8ab2602bb0a0190a9" ;
2025-03-02 18:55:56 +01:00
hash = "sha256-QYWhXh404JNAZN7kXYhsPQpFpyBA/MehxJOxdDKX0Mc=" ;
} ;
2025-03-02 19:52:08 +01:00
dontPatch = true ;
dontConfigure = true ;
dontBuild = true ;
2025-03-02 19:52:08 +01:00
installPhase = ''
runHook preInstall
2025-03-02 19:52:08 +01:00
mkdir -p $out/lib/python3.11/site-packages
# Dependencies
ln -s ${django}/lib/python3.11/site-packages/* $out/lib/python3.11/site-packages/
ln -s ${django-appconf}/lib/python3.11/site-packages/* $out/lib/python3.11/site-packages/
ln -s ${pilkit}/lib/python3.11/site-packages/* $out/lib/python3.11/site-packages/
# The package itself
cp -r $src/imagekit $out/lib/python3.11/site-packages/
2025-03-02 19:52:08 +01:00
runHook postInstall
'' ;
}