pythonPakcages.django_2_1: init at 2.1
This commit is contained in:
parent
ff3aeada34
commit
08a32ae34f
43
pkgs/development/python-modules/django/2_1.nix
Normal file
43
pkgs/development/python-modules/django/2_1.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
|
||||
isPy3k,
|
||||
geos, gdal, pytz,
|
||||
withGdal ? false
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Django";
|
||||
version = "2.1";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0dv184lgp7scq8cr4422rrvkd8npyiqww0zw50ygcim5smw6093z";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals withGdal [
|
||||
(substituteAll {
|
||||
src = ./1.10-gis-libs.template.patch;
|
||||
geos = geos;
|
||||
gdal = gdal;
|
||||
extension = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
})
|
||||
];
|
||||
|
||||
# patch only $out/bin to avoid problems with starter templates (see #3134)
|
||||
postFixup = ''
|
||||
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pytz ];
|
||||
|
||||
# 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 ];
|
||||
};
|
||||
}
|
@ -4570,6 +4570,10 @@ in {
|
||||
gdal = self.gdal;
|
||||
};
|
||||
|
||||
django_2_1 = callPackage ../development/python-modules/django/2_1.nix {
|
||||
gdal = self.gdal;
|
||||
};
|
||||
|
||||
django_1_8 = buildPythonPackage rec {
|
||||
name = "Django-${version}";
|
||||
version = "1.8.18";
|
||||
|
Loading…
Reference in New Issue
Block a user