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