New package: py-rasterstats (#34070)

* Fixed dependencies for rasterstats

* Fixed flake8 errors

* Fix flake8 error

* Cleans up package desc., adds build dependency on setuptools.

* Fixes flake8 error

Co-authored-by: Bailey Brown <bobits@rit.edu>
This commit is contained in:
Jen Herting 2022-11-23 04:55:14 -05:00 committed by GitHub
parent 7de39c44b1
commit 81fb87cedf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,27 @@
# Copyright 2013-2022 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.package import *
class PyRasterstats(PythonPackage):
"""rasterstats is a Python module for summarizing geospatial raster datasets
based on vector geometries. It includes functions for zonal statistics and
interpolated point queries. The command-line interface allows for easy
interperability with other GeoJSON tools."""
homepage = "https://github.com/perrygeo/python-rasterstats"
pypi = "rasterstats/rasterstats-0.17.0.tar.gz"
version("0.17.0", sha256="27975ebc0a402865dd9e92ad4ecf0dd62678e320735cc81e104c730e6d001298")
depends_on("py-affine@:2", type=("build", "run"))
depends_on("py-shapely", type=("build", "run"))
depends_on("py-numpy@1.9:", type=("build", "run"))
depends_on("py-rasterio@1.0:", type=("build", "run"))
depends_on("py-cligj@0.4:", type=("build", "run"))
depends_on("py-fiona", type=("build", "run"))
depends_on("py-simplejson", type=("build", "run"))
depends_on("py-setuptools", type=("build"))