Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchurl 4, pythonOlder 5}: 6 7buildPythonPackage rec { 8 name = "Django-${version}"; 9 version = "1.8.19"; 10 11 src = fetchurl { 12 url = "http://www.djangoproject.com/m/releases/1.8/${name}.tar.gz"; 13 sha256 = "0iy0ni9j1rnx9b06ycgbg2dkrf3qid3y2jipk9x28cykz5f4mm1k"; 14 }; 15 16 # too complicated to setup 17 doCheck = false; 18 19 # patch only $out/bin to avoid problems with starter templates (see #3134) 20 postFixup = '' 21 wrapPythonProgramsIn $out/bin "$out $pythonPath" 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "A high-level Python Web framework"; 26 homepage = https://www.djangoproject.com/; 27 license = licenses.bsd0; 28 knownVulnerabilities = [ 29 # The patches were not backported due to Django 1.8 having reached EOL 30 https://www.djangoproject.com/weblog/2018/aug/01/security-releases/ 31 https://www.djangoproject.com/weblog/2019/jan/04/security-releases/ 32 ]; 33 }; 34 35}