2017-04-07 15:06:00 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
|
2017-10-09 16:21:41 +00:00
|
|
|
geos, gdal, pytz,
|
|
|
|
withGdal ? false
|
2017-04-07 15:06:00 +00:00
|
|
|
}:
|
2017-10-09 16:14:15 +00:00
|
|
|
|
2017-04-07 15:06:00 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 09:25:35 +00:00
|
|
|
pname = "Django";
|
2019-09-08 04:32:38 +00:00
|
|
|
version = "1.11.24";
|
2017-04-07 15:06:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-22 14:30:11 +00:00
|
|
|
url = "https://www.djangoproject.com/m/releases/1.11/${pname}-${version}.tar.gz";
|
2019-09-08 04:32:38 +00:00
|
|
|
sha256 = "1qw97zcsnbnn9dqad1kps48vfaifdkvqb8c3vld6nnvp7x2jfp11";
|
2017-04-07 15:06:00 +00:00
|
|
|
};
|
|
|
|
|
2017-10-09 16:21:41 +00:00
|
|
|
patches = stdenv.lib.optionals withGdal [
|
2017-04-07 15:06:00 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./1.10-gis-libs.template.patch;
|
|
|
|
geos = geos;
|
|
|
|
gdal = gdal;
|
2017-10-09 16:14:15 +00:00
|
|
|
extension = stdenv.hostPlatform.extensions.sharedLibrary;
|
2017-04-07 15:06:00 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytz ];
|
|
|
|
|
|
|
|
# too complicated to setup
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-12-22 14:30:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-04-07 15:06:00 +00:00
|
|
|
description = "A high-level Python Web framework";
|
|
|
|
homepage = https://www.djangoproject.com/;
|
2018-12-22 14:30:11 +00:00
|
|
|
license = licenses.bsd3;
|
2017-04-07 15:06:00 +00:00
|
|
|
};
|
|
|
|
}
|