Merge pull request #24208 from lsix/update_django_1_10

pythonPackages.django: 1.10.5 -> 1.10.6
This commit is contained in:
Frederik Rietdijk
2017-03-26 09:43:41 +02:00
committed by GitHub
2 changed files with 37 additions and 30 deletions

View File

@@ -0,0 +1,35 @@
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
pythonOlder,
geos, gdal
}:
buildPythonPackage rec {
name = "Django-${version}";
version = "1.10.6";
disabled = pythonOlder "2.7";
src = fetchurl {
url = "http://www.djangoproject.com/m/releases/1.10/${name}.tar.gz";
sha256 = "0q9c7hx720vc0jzq4xlxwhnxmmm8kh0qsqj3l46m29mi98jvwvks";
};
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"
'';
# too complicated to setup
doCheck = false;
meta = {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
};
}