summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-planetary-computer/package.py22
-rw-r--r--var/spack/repos/builtin/packages/py-pystac-client/package.py20
2 files changed, 42 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-planetary-computer/package.py b/var/spack/repos/builtin/packages/py-planetary-computer/package.py
new file mode 100644
index 0000000000..f48af5f574
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-planetary-computer/package.py
@@ -0,0 +1,22 @@
+# 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 PyPlanetaryComputer(PythonPackage):
+ """Python library for interacting with the Microsoft Planetary Computer."""
+
+ homepage = "https://github.com/microsoft/PlanetaryComputer"
+ pypi = "planetary-computer/planetary-computer-0.4.9.tar.gz"
+
+ version("0.4.9", sha256="f25030aa5b1fc3e44bd0d48300325ffbdbbabbed4a837dfcea55764359249720")
+
+ depends_on("py-setuptools@42:", type="build")
+ depends_on("py-click@7.1:", type=("build", "run"))
+ depends_on("py-pydantic@1.7.3:+dotenv", type=("build", "run"))
+ depends_on("py-pystac@1:", type=("build", "run"))
+ depends_on("py-pystac-client@0.2:", type=("build", "run"))
+ depends_on("py-requests@2.25.1:", type=("build", "run"))
diff --git a/var/spack/repos/builtin/packages/py-pystac-client/package.py b/var/spack/repos/builtin/packages/py-pystac-client/package.py
new file mode 100644
index 0000000000..65eeda697a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pystac-client/package.py
@@ -0,0 +1,20 @@
+# 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 PyPystacClient(PythonPackage):
+ """Python library for working with Spatiotemporal Asset Catalog (STAC)."""
+
+ homepage = "https://github.com/stac-utils/pystac-client.git"
+ pypi = "pystac-client/pystac-client-0.5.1.tar.gz"
+
+ version("0.5.1", sha256="f585bd9bcd52ee399c8a292dbb7e0405c0da359a73bc07c1ef82a65c17124d94")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-requests@2.27.1:", type=("build", "run"))
+ depends_on("py-pystac@1.4:", type=("build", "run"))
+ depends_on("py-python-dateutil@2.7:", type=("build", "run"))