summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-rasterstats/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-rasterstats/package.py b/var/spack/repos/builtin/packages/py-rasterstats/package.py
new file mode 100644
index 0000000000..d2497bcd82
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-rasterstats/package.py
@@ -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"))