nixpkgs/pkgs/development/python-modules/django/3.nix

49 lines
935 B
Nix
Raw Normal View History

{ lib, stdenv
2020-08-29 12:57:03 +00:00
, buildPythonPackage
, fetchPypi
, substituteAll
, geos
, gdal
, asgiref
, pytz
, sqlparse
, pythonOlder
, withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "3.1.5";
2020-08-29 12:57:03 +00:00
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "2d78425ba74c7a1a74b196058b261b9733a8570782f4e2828974777ccca7edf7";
2020-08-29 12:57:03 +00:00
};
patches = stdenv.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; {
2020-08-29 12:57:03 +00:00
description = "A high-level Python Web framework";
homepage = "https://www.djangoproject.com/";
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell lsix ];
};
}