461552526b
This fixes CVE-2018-7536 and CVE-2018-7537: https://www.djangoproject.com/weblog/2018/mar/06/security-releases/ cc https://github.com/NixOS/nixpkgs/issues/52679
30 lines
673 B
Nix
30 lines
673 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchurl
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
name = "Django-${version}";
|
|
version = "1.8.19";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.djangoproject.com/m/releases/1.8/${name}.tar.gz";
|
|
sha256 = "0iy0ni9j1rnx9b06ycgbg2dkrf3qid3y2jipk9x28cykz5f4mm1k";
|
|
};
|
|
|
|
# too complicated to setup
|
|
doCheck = false;
|
|
|
|
# patch only $out/bin to avoid problems with starter templates (see #3134)
|
|
postFixup = ''
|
|
wrapPythonProgramsIn $out/bin "$out $pythonPath"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A high-level Python Web framework";
|
|
homepage = https://www.djangoproject.com/;
|
|
license = licenses.bsd0;
|
|
};
|
|
|
|
}
|