Merge pull request #30254 from FRidh/django-gdal
python.pkgs.django: make gdal support optional
This commit is contained in:
commit
7f43dd3b3b
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
|
{ stdenv, buildPythonPackage, fetchurl, substituteAll,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
geos, gdal, pytz
|
geos, gdal, pytz,
|
||||||
|
withGdal ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -15,7 +16,7 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0a9bk1a0n0264lcr67fmwzqyhkhy6bqdzkxsj9a8dpyzca0qfdhq";
|
sha256 = "0a9bk1a0n0264lcr67fmwzqyhkhy6bqdzkxsj9a8dpyzca0qfdhq";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = stdenv.lib.optionals withGdal [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./1.10-gis-libs.template.patch;
|
src = ./1.10-gis-libs.template.patch;
|
||||||
geos = geos;
|
geos = geos;
|
||||||
|
Loading…
Reference in New Issue
Block a user