nixpkgs/pkgs/development/python-modules/django/3.nix
Lancelot SIX 26cb44f97d Revert "python3Packages.django_3: 3.2 -> 3.2.2"
This reverts commit 957371b717.

This commit should have gone to staging first.
2021-05-07 10:50:00 +01:00

49 lines
914 B
Nix

{ lib, stdenv
, buildPythonPackage
, fetchPypi
, substituteAll
, geos
, gdal
, asgiref
, pytz
, sqlparse
, pythonOlder
, withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "3.2";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "179qdxa438fnycnnf1j5z6359h1kbp2q7djf01v5jrr26xjgkw11";
};
patches = lib.optional withGdal
(substituteAll {
src = ./django_3_set_geos_gdal_lib.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
});
propagatedBuildInputs = [
asgiref
pytz
sqlparse
];
# too complicated to setup
doCheck = false;
meta = with lib; {
description = "A high-level Python Web framework";
homepage = "https://www.djangoproject.com/";
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell lsix ];
};
}