2017-04-07 16:06:00 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
|
|
|
|
pythonOlder,
|
|
|
|
geos, gdal, pytz
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "Django";
|
|
|
|
name = "${pname}-${version}";
|
2017-07-10 15:44:49 +01:00
|
|
|
version = "1.11.3";
|
2017-05-27 10:25:35 +01:00
|
|
|
|
2017-04-07 16:06:00 +01:00
|
|
|
disabled = pythonOlder "2.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.djangoproject.com/m/releases/1.11/${name}.tar.gz";
|
2017-07-10 15:44:49 +01:00
|
|
|
sha256 = "0swgmwnfi6sa5fg5yxcs4k554cj9zp92w5n454xfsibjjl5dxycy";
|
2017-04-07 16:06:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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/;
|
|
|
|
};
|
|
|
|
}
|