diff options
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')) |