summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-pygdal/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pygdal/package.py b/var/spack/repos/builtin/packages/py-pygdal/package.py
new file mode 100644
index 0000000000..823dd9031a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pygdal/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyPygdal(PythonPackage):
+ """
+ Virtualenv and setuptools friendly version of standard GDAL python
+ bindings.
+
+ This package is for you if you had problems installing GDAL in your
+ virtualenv. You can install GDAL into your virtualenv using this package
+ but you still need to install GDAL library and its header files on your
+ system.
+ """
+
+ homepage = "https://github.com/nextgis/pygdal"
+ url = "https://pypi.io/packages/source/p/pygdal/pygdal-3.0.1.5.tar.gz"
+
+ version('3.0.1.5', sha256='1222f69fe5e6b632d0d2a42d3acb8fac80fb4577c05e01969d8cd5548192ccaa')
+ version('1.11.5.3', sha256='746d13b73a284446a1b604772f869789eabfe6e69dee463f537da27845b29fa7')
+ version('1.11.4.3', sha256='99d4b0c94d57ae50592924faaa65cc6a0c0892d83764e9f24ef9270c3a4b111a')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-numpy@1.0.0:', type=('build', 'run'))
+ depends_on('gdal@3.0.1', type=('build', 'link', 'run'), when='@3.0.1.5')
+ depends_on('gdal@1.11.5', type=('build', 'link', 'run'), when='@1.11.5.3')
+ depends_on('gdal@1.11.4', type=('build', 'link', 'run'), when='@1.11.4.3')