1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 09:20:58 +03:00
nixpkgs/pkgs/development/python-modules/django/3.nix

50 lines
927 B
Nix
Raw Normal View History

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