nixpkgs/pkgs/development/python-modules/django/3.nix

49 lines
937 B
Nix
Raw Normal View History

2020-08-29 13:57:03 +01:00
{ stdenv
, buildPythonPackage
, fetchPypi
, substituteAll
, geos
, gdal
, asgiref
, pytz
, sqlparse
, pythonOlder
, withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
2020-11-04 14:04:22 +00:00
version = "3.1.3";
2020-08-29 13:57:03 +01:00
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
2020-11-04 14:04:22 +00:00
sha256 = "14b87775ffedab2ef6299b73343d1b4b41e5d4e2aa58c6581f114dbec01e3f8f";
2020-08-29 13:57:03 +01:00
};
patches = stdenv.lib.optional withGdal
(substituteAll {
src = ./django_3_set_geos_gdal_lib.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
});
propagatedBuildInputs = [
asgiref
pytz
sqlparse
];
# too complicated to setup
doCheck = false;
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = "https://www.djangoproject.com/";
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell lsix ];
};
}