2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, substituteAll,
|
2019-04-09 14:42:19 +01:00
|
|
|
isPy3k,
|
|
|
|
geos, gdal, pytz, sqlparse,
|
|
|
|
withGdal ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Django";
|
2021-03-20 15:10:35 +00:00
|
|
|
version = "2.2.19";
|
2019-04-09 14:42:19 +01:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-20 15:10:35 +00:00
|
|
|
sha256 = "0hysjf8bz4g8xrn2cdx6pmawimpyr6ag2fg3jxsnc1byr3g3bhih";
|
2019-04-09 14:42:19 +01:00
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
patches = lib.optional withGdal
|
2019-04-09 14:42:19 +01:00
|
|
|
(substituteAll {
|
|
|
|
src = ./1.10-gis-libs.template.patch;
|
|
|
|
geos = geos;
|
|
|
|
gdal = gdal;
|
|
|
|
extension = stdenv.hostPlatform.extensions.sharedLibrary;
|
|
|
|
})
|
|
|
|
;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytz sqlparse ];
|
|
|
|
|
|
|
|
# too complicated to setup
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-09 14:42:19 +01:00
|
|
|
description = "A high-level Python Web framework";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.djangoproject.com/";
|
2019-04-09 14:42:19 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ georgewhewell lsix ];
|
|
|
|
};
|
|
|
|
}
|