nixpkgs-suyu/pkgs/development/python-modules/django/1_11.nix
Robert Schütz e79d165d42 python.pkgs.django_1_11: 1.11.17 -> 1.11.18
fixes CVE-2019-3498
2019-01-30 14:45:23 +01:00

40 lines
992 B
Nix

{ stdenv, buildPythonPackage, fetchurl, substituteAll,
pythonOlder,
geos, gdal, pytz,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "1.11.18";
src = fetchurl {
url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
sha256 = "19b6f020als9hr4q1im5282yn2b1hzf586n9kjrlkrslq7da3k3k";
};
patches = stdenv.lib.optionals withGdal [
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
})
];
# 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 = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd3;
};
}