pythonPackags.django: default from 1_9 to 1_10

This commit is contained in:
Lancelot SIX 2016-08-03 09:10:38 +02:00
parent 3f093b9c9c
commit af154d1ca6
No known key found for this signature in database
GPG key ID: 02E1542BA66FB047
2 changed files with 18 additions and 11 deletions

View file

@ -13,12 +13,12 @@ diff --git a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgda
diff --git a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
--- a/django/contrib/gis/geos/libgeos.py
+++ b/django/contrib/gis/geos/libgeos.py
@@ -23,7 +23,7 @@ try:
lib_path = settings.GEOS_LIBRARY_PATH
except (AttributeError, EnvironmentError,
ImportError, ImproperlyConfigured):
- lib_path = None
+ lib_path = "@geos@/lib/libgeos_c.so"
@@ -26,7 +26,7 @@ try:
lib_path = settings.GEOS_LIBRARY_PATH
except (AttributeError, EnvironmentError,
ImportError, ImproperlyConfigured):
- lib_path = None
+ lib_path = "@geos@/lib/libgeos_c.so"
# Setting the appropriate names for the GEOS-C library.
if lib_path:
# Setting the appropriate names for the GEOS-C library.
if lib_path:

View file

@ -8891,12 +8891,12 @@ in modules // {
};
};
django = self.django_1_9;
django = self.django_1_10;
django_gis = self.django.override rec {
patches = [
(pkgs.substituteAll {
src = ../development/python-modules/django/1.7.7-gis-libs.template.patch;
src = ../development/python-modules/django/1.10-gis-libs.template.patch;
geos = pkgs.geos;
gdal = pkgs.gdal;
})
@ -9202,7 +9202,14 @@ in modules // {
sha256 = "0rpi1bkfx74xfbb2nk874kfdra1jcqp2vzky1r3z7zidlc9kah04";
};
propagatedBuildInputs = with self; [ django django_compat ];
# TODO improve the that multi-override necessity (the fixpoint based python
# packages work can be the solution)
propagatedBuildInputs = with self; [ django_1_9 (django_compat.override {
buildInputs = with self; [ (django_nose.override {
propagatedBuildInputs = with self; [ django_1_9 nose ];
}) ];
propagatedBuildInputs = with self; [ django_1_9 six ];
}) ];
meta = {
description = "Allows superusers to hijack (=login as) and work on behalf of another user";