pythonPackages.django_1_11: init at 1.11

This it the LTS release and will receive security updates for 3 years.

See https://docs.djangoproject.com/en/1.11/releases/1.11/
This commit is contained in:
Lancelot SIX 2017-04-07 17:06:00 +02:00
parent 72966154b3
commit e1a82bd39e
No known key found for this signature in database
GPG Key ID: 02E1542BA66FB047
2 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,37 @@
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
pythonOlder,
geos, gdal, pytz
}:
buildPythonPackage rec {
name = "Django-${version}";
version = "1.11";
disabled = pythonOlder "2.7";
src = fetchurl {
url = "http://www.djangoproject.com/m/releases/1.11/${name}.tar.gz";
sha256 = "0c1c2n05wv1br651hfbvnxw8ymcn4q8m56893pyv8xj2jijbiwxn";
};
patches = [
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
})
];
# 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 = {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
};
}

View File

@ -10368,7 +10368,11 @@ in {
}; };
}; };
django = self.django_1_10; django = self.django_1_11;
django_1_11 = callPackage ../development/python-modules/django/1_11.nix {
gdal = self.gdal;
};
django_1_10 = callPackage ../development/python-modules/django/1_10.nix { django_1_10 = callPackage ../development/python-modules/django/1_10.nix {
gdal = self.gdal; gdal = self.gdal;