nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 927 B view raw
1{ lib, stdenv 2, buildPythonPackage 3, fetchPypi 4, substituteAll 5, geos 6, gdal 7, asgiref 8, pytz 9, sqlparse 10, pythonOlder 11, withGdal ? false 12}: 13 14buildPythonPackage rec { 15 pname = "django"; 16 version = "3.2.13"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 pname = "Django"; 22 inherit version; 23 sha256 = "sha256-bZNJegqb9roOCxopzM3EDvv8dilyVbEwmzqISmiOxLY="; 24 }; 25 26 patches = lib.optional withGdal 27 (substituteAll { 28 src = ./django_3_set_geos_gdal_lib.patch; 29 geos = geos; 30 gdal = gdal; 31 extension = stdenv.hostPlatform.extensions.sharedLibrary; 32 }); 33 34 propagatedBuildInputs = [ 35 asgiref 36 pytz 37 sqlparse 38 ]; 39 40 # too complicated to setup 41 doCheck = false; 42 43 meta = with lib; { 44 description = "A high-level Python Web framework"; 45 homepage = "https://www.djangoproject.com/"; 46 license = licenses.bsd3; 47 maintainers = with maintainers; [ georgewhewell ]; 48 }; 49}