mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
af60375392
This is a security release. See https://www.djangoproject.com/weblog/2017/apr/04/security-releases/
36 lines
816 B
Nix
36 lines
816 B
Nix
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
|
|
pythonOlder,
|
|
geos, gdal
|
|
}:
|
|
buildPythonPackage rec {
|
|
name = "Django-${version}";
|
|
version = "1.10.7";
|
|
disabled = pythonOlder "2.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.djangoproject.com/m/releases/1.10/${name}.tar.gz";
|
|
sha256 = "1f5hnn2dzfr5szk4yc47bs4kk2nmrayjcvgpqi2s4l13pjfpfgar";
|
|
};
|
|
|
|
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"
|
|
'';
|
|
|
|
# too complicated to setup
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "A high-level Python Web framework";
|
|
homepage = https://www.djangoproject.com/;
|
|
};
|
|
}
|