pythonPakcages.django_2_1: init at 2.1

This commit is contained in:
Lancelot SIX 2018-08-16 17:48:30 +02:00
parent ff3aeada34
commit 08a32ae34f
No known key found for this signature in database
GPG Key ID: 02E1542BA66FB047
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
geos, gdal, pytz,
withGdal ? false
}:
buildPythonPackage rec {
pname = "Django";
version = "2.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0dv184lgp7scq8cr4422rrvkd8npyiqww0zw50ygcim5smw6093z";
};
patches = stdenv.lib.optionals withGdal [
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
})
];
# patch only $out/bin to avoid problems with starter templates (see #3134)
postFixup = ''
wrapPythonProgramsIn $out/bin "$out $pythonPath"
'';
propagatedBuildInputs = [ pytz ];
# too complicated to setup
doCheck = false;
meta = with stdenv.lib; {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell ];
};
}

View File

@ -4570,6 +4570,10 @@ in {
gdal = self.gdal;
};
django_2_1 = callPackage ../development/python-modules/django/2_1.nix {
gdal = self.gdal;
};
django_1_8 = buildPythonPackage rec {
name = "Django-${version}";
version = "1.8.18";