nixpkgs/pkgs/development/python-modules/django/2_0.nix
Robert Schütz 682b551864 python.pkgs.django_2_0: 2.0.9 -> 2.0.10
fixes CVE-2019-3498
2019-01-30 14:46:54 +01:00

44 lines
1019 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
geos, gdal, pytz,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "2.0.10";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0292a7ad7d8ffc9cfc6a77f043d2e81f5bbc360c0c4a1686e130ef3432437d23";
};
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;
maintainers = with maintainers; [ georgewhewell ];
};
}