44b82c6a8e
Release notes and associated fixed CVEs: - https://docs.djangoproject.com/en/2.0/releases/1.11.10/ - CVE-2018-6188 - https://docs.djangoproject.com/en/2.0/releases/1.11.11/ - CVE-2018-7536 - CVE-2018-7537 - https://docs.djangoproject.com/en/2.0/releases/1.11.12/
42 lines
978 B
Nix
42 lines
978 B
Nix
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
|
|
pythonOlder,
|
|
geos, gdal, pytz,
|
|
withGdal ? false
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Django";
|
|
version = "1.11.12";
|
|
|
|
disabled = pythonOlder "2.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
|
|
sha256 = "1szjha338grhf9dq0wpbrqwvak597shsx474pm5j67kn09xqqfad";
|
|
};
|
|
|
|
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 = {
|
|
description = "A high-level Python Web framework";
|
|
homepage = https://www.djangoproject.com/;
|
|
};
|
|
}
|