44 buildPythonPackage rec {
49 disabled = pythonOlder "3.8";
52 inherit pname version;
53 hash = "sha256-Z4u/yGBOskbtVOIGPwdl8TsyGlBSa9yMsflD7af6MfE=";
58 src = ./django_4_set_zoneinfo_dir.patch;
59 zoneinfo = tzdata + "/share/zoneinfo";
61 ] ++ lib.optionals withGdal [
63 src = ./django_4_set_geos_gdal_lib.patch;
66 extension = stdenv.hostPlatform.extensions.sharedLibrary;
74 propagatedBuildInputs = [
77 ] ++ lib.optionals (pythonOlder "3.9") [
81 # Fails to import asgiref in ~200 tests
82 # ModuleNotFoundError: No module named 'asgiref'
110 ${python.interpreter} tests/runtests.py
116 description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design.";
117 homepage = "https://www.djangoproject.com";
118 license = licenses.bsd3;
119 maintainers = with maintainers; [ hexa ];