summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorNeil Flood <neilflood@fastmail.fm>2018-11-25 07:44:44 +1000
committerAdam J. Stewart <ajstewart426@gmail.com>2018-11-24 15:44:44 -0600
commit9945a59c47e77a8c5305f925da45c5a0b4818d0f (patch)
treebb60a63f1af503b1e8e877eb9907d3e9cec4ba9a /var
parent25b9938ad12e6546b27eee01cba89cbe3f5341f0 (diff)
downloadspack-9945a59c47e77a8c5305f925da45c5a0b4818d0f.tar.gz
spack-9945a59c47e77a8c5305f925da45c5a0b4818d0f.tar.bz2
spack-9945a59c47e77a8c5305f925da45c5a0b4818d0f.tar.xz
spack-9945a59c47e77a8c5305f925da45c5a0b4818d0f.zip
py-geopandas: New package. (#9919)
* py-geopandas: New package, including packages for its dependencies * Trailing whitespace removed, etc * One more trailing whitespace * Removed some extraneous dependencies. No idea why I thought I needed them, but it now builds fine without them. * Added a variant +plotting, to include the dependencies required for plotting, as these are large-ish if not being used. * Added explicit dependency on py-matplotlib
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-click-plugins/package.py19
-rw-r--r--var/spack/repos/builtin/packages/py-descartes/package.py19
-rw-r--r--var/spack/repos/builtin/packages/py-fiona/package.py29
-rw-r--r--var/spack/repos/builtin/packages/py-geopandas/package.py30
-rw-r--r--var/spack/repos/builtin/packages/py-munch/package.py19
5 files changed, 116 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-click-plugins/package.py b/var/spack/repos/builtin/packages/py-click-plugins/package.py
new file mode 100644
index 0000000000..9efcc63245
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-click-plugins/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2018 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 PyClickPlugins(PythonPackage):
+ """An extension module for py-click to register external CLI
+ commands via setuptools entry-points."""
+
+ homepage = "https://pypi.org/project/click-plugins/"
+ url = "https://pypi.io/packages/source/c/click-plugins/click-plugins-1.0.4.tar.gz"
+
+ version('1.0.4', '3db73ba58271e3d9644be9b9c03a9d8d')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-click@3.0:', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-descartes/package.py b/var/spack/repos/builtin/packages/py-descartes/package.py
new file mode 100644
index 0000000000..68be4e7d13
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-descartes/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2018 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 PyDescartes(PythonPackage):
+ """Use Shapely or GeoJSON-like geometric objects as matplotlib paths
+ and patches"""
+
+ homepage = "https://pypi.org/project/descartes/"
+ url = "https://pypi.io/packages/source/d/descartes/descartes-1.1.0.tar.gz"
+
+ version('1.1.0', 'ac608090f3c9f6e0ce856fdc29944096')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-matplotlib', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-fiona/package.py b/var/spack/repos/builtin/packages/py-fiona/package.py
new file mode 100644
index 0000000000..a0187ab968
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-fiona/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2018 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 PyFiona(PythonPackage):
+ """Alternative Python binding for OGR"""
+
+ homepage = "http://toblerity.org/fiona/"
+ url = "https://github.com/Toblerity/Fiona/archive/1.7.12.tar.gz"
+
+ version('1.7.12', 'a2269acf64d9c87482e5d67dae19501c')
+
+ depends_on('python@2.6:', type=('build', 'run'))
+
+ depends_on('py-cligj@0.4:', type=('build', 'run'))
+ depends_on('py-six@1.7:', type=('build', 'run'))
+ depends_on('py-munch', type=('build', 'run'))
+ depends_on('py-argparse', type=('build', 'run'), when='^python@:2.6')
+ depends_on('py-ordereddict', type=('build', 'run'), when='^python@:2.6')
+ depends_on('gdal@1.8:', type=('build', 'run'))
+ depends_on('py-click-plugins', type=('build', 'run'))
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-cython@0.21.2:', type='build')
+ depends_on('py-nose', type='test')
diff --git a/var/spack/repos/builtin/packages/py-geopandas/package.py b/var/spack/repos/builtin/packages/py-geopandas/package.py
new file mode 100644
index 0000000000..7078f67de5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-geopandas/package.py
@@ -0,0 +1,30 @@
+# Copyright 2013-2018 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 PyGeopandas(PythonPackage):
+ """GeoPandas is an open source project to make working with geospatial
+ data in python easier. GeoPandas extends the datatypes used by pandas
+ to allow spatial operations on geometric types. Geometric operations are
+ performed by shapely. Geopandas further depends on fiona for file access
+ and descartes and matplotlib for plotting."""
+
+ homepage = "http://geopandas.org/"
+ url = "https://github.com/geopandas/geopandas/releases/download/v0.4.0/geopandas-0.4.0.tar.gz"
+
+ version('0.4.0', 'aaad4e27c000d9fa558730d84a9be468')
+ version('0.3.0', 'a4211e7a5e113002aec6823ba1368e75')
+
+ variant('plotting', default=False, description='Include dependencies required for plotting')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-descartes', type=('build', 'run'), when='+plotting')
+ depends_on('py-matplotlib', type=('build', 'run'), when='+plotting')
+ depends_on('py-fiona', type=('build', 'run'))
+ depends_on('py-proj', type=('build', 'run'))
+ depends_on('py-shapely', type=('build', 'run'))
+ depends_on('py-pandas', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-munch/package.py b/var/spack/repos/builtin/packages/py-munch/package.py
new file mode 100644
index 0000000000..9db1dd5c19
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-munch/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2018 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 PyMunch(PythonPackage):
+ """A Munch is a Python dictionary that provides attribute-style
+ access (a la JavaScript objects). """
+
+ homepage = "https://github.com/Infinidat/munch"
+ url = "https://github.com/Infinidat/munch/archive/2.2.0.tar.gz"
+
+ version('2.2.0', 'a50f0e4d770b5106f0c440a6cff3617f')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-six', type=('build', 'run'))