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

32 lines
582 B
Nix
Raw Normal View History

{
fetchFromGitHub ,
stdenv ,
} :
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
installPhase = ''
runHook preInstall
2025-03-02 19:52:08 +01:00
mkdir -p $out/lib/python3.11/site-packages
cp -r $src/imagekit $out/lib/python3.11/site-packages/
2025-03-02 19:52:08 +01:00
runHook postInstall
'' ;
}