nixpkgs/pkgs/development/python-modules/django/1_11.nix
Lancelot SIX e1a82bd39e
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/
2017-04-28 21:55:45 +02:00

38 lines
857 B
Nix

{ 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/;
};
}