Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 58 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, stdenv, buildPythonPackage, fetchPypi, substituteAll, geos39, gdal, asgiref, pytz, sqlparse, tzdata, pythonOlder, withGdal ? false}:
buildPythonPackage rec { pname = "django"; version = "3.2.19";
disabled = pythonOlder "3.7";
src = fetchPypi { pname = "Django"; inherit version; hash = "sha256-AxNluuloFNoZwQcGIYxE3/O2VMxN4gqYvS0pub3kafA="; };
patches = [ (substituteAll { src = ./django_3_set_zoneinfo_dir.patch; zoneinfo = tzdata + "/share/zoneinfo"; }) ] ++ lib.optional withGdal (substituteAll { src = ./django_3_set_geos_gdal_lib.patch; inherit geos39; inherit gdal; extension = stdenv.hostPlatform.extensions.sharedLibrary; });
propagatedBuildInputs = [ asgiref pytz sqlparse ];
# too complicated to setup doCheck = false;
pythonImportsCheck = [ "django" ];
meta = with lib; { description = "A high-level Python Web framework"; homepage = "https://www.djangoproject.com/"; license = licenses.bsd3; maintainers = with maintainers; [ georgewhewell ]; };}