Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 34 lines 823 B view raw
1{ stdenv, buildPythonPackage, fetchurl, substituteAll, 2 geos, gdal, pytz, 3 withGdal ? false 4}: 5 6buildPythonPackage rec { 7 pname = "Django"; 8 version = "1.11.24"; 9 10 src = fetchurl { 11 url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz"; 12 sha256 = "1qw97zcsnbnn9dqad1kps48vfaifdkvqb8c3vld6nnvp7x2jfp11"; 13 }; 14 15 patches = stdenv.lib.optionals withGdal [ 16 (substituteAll { 17 src = ./1.10-gis-libs.template.patch; 18 geos = geos; 19 gdal = gdal; 20 extension = stdenv.hostPlatform.extensions.sharedLibrary; 21 }) 22 ]; 23 24 propagatedBuildInputs = [ pytz ]; 25 26 # too complicated to setup 27 doCheck = false; 28 29 meta = with stdenv.lib; { 30 description = "A high-level Python Web framework"; 31 homepage = https://www.djangoproject.com/; 32 license = licenses.bsd3; 33 }; 34}