python.pkgs.django: make gdal support optional

This commit is contained in:
Frederik Rietdijk 2017-10-09 18:21:41 +02:00
parent 549188c293
commit b244e57c9c

View File

@ -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;