2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, substituteAll,
|
2019-04-09 13:42:19 +00:00
|
|
|
isPy3k,
|
|
|
|
geos, gdal, pytz, sqlparse,
|
|
|
|
withGdal ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Django";
|
2021-06-02 13:23:05 +00:00
|
|
|
version = "2.2.24";
|
2019-04-09 13:42:19 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-02 13:23:05 +00:00
|
|
|
sha256 = "1dvx3x85lggm91x7mpvaf9nmpxyz7r97pbpnmr2k1qfy0c7gyf9k";
|
2019-04-09 13:42:19 +00:00
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
patches = lib.optional withGdal
|
2019-04-09 13:42:19 +00: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 13:42:19 +00:00
|
|
|
description = "A high-level Python Web framework";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.djangoproject.com/";
|
2019-04-09 13:42:19 +00:00
|
|
|
license = licenses.bsd3;
|
2021-11-14 16:27:56 +00:00
|
|
|
maintainers = with maintainers; [ georgewhewell ];
|
2019-04-09 13:42:19 +00:00
|
|
|
};
|
|
|
|
}
|