Merge pull request #24712 from lsix/add_django_1_11

Add django 1 11
This commit is contained in:
Michael Raskin
2017-05-01 11:17:31 +02:00
committed by GitHub
4 changed files with 68 additions and 24 deletions

View File

@@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchurl,
django, django_nose, six
}:
buildPythonPackage rec {
name = "django-compat-${version}";
version = "1.0.14";
src = fetchurl {
url = "mirror://pypi/d/django-compat/${name}.tar.gz";
sha256 = "18y5bxxmafcd4np42mzbalva5lpssq0b8ki7zckbzvdv2mnv43xj";
};
doCheck = false;
buildInputs = [ django_nose ];
propagatedBuildInputs = [ django six ];
meta = with stdenv.lib; {
description = "Forward and backwards compatibility layer for Django 1.4, 1.7, 1.8, 1.9, 1.10 and 1.11";
homepage = https://github.com/arteria/django-compat;
license = licenses.mit;
};
}

View File

@@ -0,0 +1,37 @@
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
pythonOlder,
geos, gdal, pytz
}:
buildPythonPackage rec {
name = "Django-${version}";
version = "1.11";
disabled = pythonOlder "2.7";
src = fetchurl {
url = "http://www.djangoproject.com/m/releases/1.11/${name}.tar.gz";
sha256 = "0c1c2n05wv1br651hfbvnxw8ymcn4q8m56893pyv8xj2jijbiwxn";
};
patches = [
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
})
];
# 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 = {
description = "A high-level Python Web framework";
homepage = https://www.djangoproject.com/;
};
}

View File

@@ -4,11 +4,11 @@
}:
buildPythonPackage rec {
name = "django-guardian-${version}";
version = "1.4.6";
version = "1.4.8";
src = fetchurl {
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
sha256 = "1r3xj0ik0hh6dfak4kjndxk5v73x95nfbppgr394nhnmiayv4zc5";
sha256 = "039mfx47c05vl6vlld0ahyq37z7m5g68vqc38pj8iic5ysr98drm";
};
buildInputs = [ pytest pytestrunner pytest-django django_environ mock setuptools_scm ];