From b244e57c9cb26bacc7186fd47efc93fb9a4f2cac Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Mon, 9 Oct 2017 18:21:41 +0200 Subject: [PATCH] python.pkgs.django: make gdal support optional --- pkgs/development/python-modules/django/1_11.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/django/1_11.nix b/pkgs/development/python-modules/django/1_11.nix index 483a8eb23d01..8bb4c4cae690 100644 --- a/pkgs/development/python-modules/django/1_11.nix +++ b/pkgs/development/python-modules/django/1_11.nix @@ -1,6 +1,7 @@ { stdenv, buildPythonPackage, fetchurl, substituteAll, pythonOlder, - geos, gdal, pytz + geos, gdal, pytz, + withGdal ? false }: buildPythonPackage rec { @@ -15,7 +16,7 @@ buildPythonPackage rec { sha256 = "0a9bk1a0n0264lcr67fmwzqyhkhy6bqdzkxsj9a8dpyzca0qfdhq"; }; - patches = [ + patches = stdenv.lib.optionals withGdal [ (substituteAll { src = ./1.10-gis-libs.template.patch; geos = geos;