pythonPackages.django_3: init at 3.1
This commit is contained in:
48
pkgs/development/python-modules/django/3.nix
Normal file
48
pkgs/development/python-modules/django/3.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, substituteAll
|
||||
, geos
|
||||
, gdal
|
||||
, asgiref
|
||||
, pytz
|
||||
, sqlparse
|
||||
, pythonOlder
|
||||
, withGdal ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "3.1";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2d390268a13c655c97e0e2ede9d117007996db692c1bb93eabebd4fb7ea7012b";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user