forked from mirrors/nixpkgs
f6fbbabcb7
Bugfix release. See https://docs.djangoproject.com/en/1.11/releases/1.11.2/
40 lines
882 B
Nix
40 lines
882 B
Nix
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
|
|
pythonOlder,
|
|
geos, gdal, pytz
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "Django";
|
|
name = "${pname}-${version}";
|
|
version = "1.11.2";
|
|
|
|
disabled = pythonOlder "2.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.djangoproject.com/m/releases/1.11/${name}.tar.gz";
|
|
sha256 = "05q6bgm3vkdqg72i1m1z8bp2jdrm9n1c37aka1brwkyzh820fnrw";
|
|
};
|
|
|
|
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/;
|
|
};
|
|
}
|