git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit37ad0f8e6a9830acda2e4af417b7f8fd386a861d authorLancelot SIX <lsix@lancelotsix.com> dateWed 24 Aug 2016, 17:49 (10 years ago) parent674aa05
1 file changed+8−10
pkgs/top-level/python-packages.nix+8−10
pkgs/top-level/python-packages.nix+8−10
@@ -8936,16 +8936,6 @@ in modules // {
89368936
89378937 django = self.django_1_10;
89388938
8939− django_gis = self.django.override rec {
8940− patches = [
8941− (pkgs.substituteAll {
8942− src = ../development/python-modules/django/1.10-gis-libs.template.patch;
8943− geos = pkgs.geos;
8944− gdal = pkgs.gdal;
8945− })
8946− ];
8947− };
8948−
89498939 django_1_10 = buildPythonPackage rec {
89508940 name = "Django-${version}";
89518941 version = "1.10";
@@ -8956,6 +8946,14 @@ in modules // {
89568946 sha256 = "01bh5yra6zyxcpqacahbwfbn0y4ivw07j2jsw3crvmjzivb6if26";
89578947 };
89588948
8949+ patches = [
8950+ (pkgs.substituteAll {
8951+ src = ../development/python-modules/django/1.10-gis-libs.template.patch;
8952+ geos = pkgs.geos;
8953+ gdal = self.gdal;
8954+ })
8955+ ];
8956+
89598957 # patch only $out/bin to avoid problems with starter templates (see #3134)
89608958 postFixup = ''
89618959 wrapPythonProgramsIn $out/bin "$out $pythonPath"