From 37ad0f8e6a9830acda2e4af417b7f8fd386a861d Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Wed, 24 Aug 2016 17:49:45 +0200 Subject: [PATCH] pythonPackages.django: always build with the GIS componnents There is no reason for django derivation to contain invalid GIS extensions. This makes sure that the gis componnents (which are always installed) can function properly. --- pkgs/top-level/python-packages.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 011d59da6b7..9056f38d81b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8936,16 +8936,6 @@ in modules // { django = self.django_1_10; - django_gis = self.django.override rec { - patches = [ - (pkgs.substituteAll { - src = ../development/python-modules/django/1.10-gis-libs.template.patch; - geos = pkgs.geos; - gdal = pkgs.gdal; - }) - ]; - }; - django_1_10 = buildPythonPackage rec { name = "Django-${version}"; version = "1.10"; @@ -8956,6 +8946,14 @@ in modules // { sha256 = "01bh5yra6zyxcpqacahbwfbn0y4ivw07j2jsw3crvmjzivb6if26"; }; + patches = [ + (pkgs.substituteAll { + src = ../development/python-modules/django/1.10-gis-libs.template.patch; + geos = pkgs.geos; + gdal = self.gdal; + }) + ]; + # patch only $out/bin to avoid problems with starter templates (see #3134) postFixup = '' wrapPythonProgramsIn $out/bin "$out $pythonPath"