summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Heeren <erik.heeren@epfl.ch>2023-03-20 16:34:33 +0100
committerGitHub <noreply@github.com>2023-03-20 10:34:33 -0500
commit2bcd4e0ecd25058f6168f4ebfa40b1ed6cf2f66a (patch)
tree20fc2f6d40a6ffb2f103a659f2db75bd489b8838
parent550bda309693acf48e290b62f3f508de316e075c (diff)
downloadspack-2bcd4e0ecd25058f6168f4ebfa40b1ed6cf2f66a.tar.gz
spack-2bcd4e0ecd25058f6168f4ebfa40b1ed6cf2f66a.tar.bz2
spack-2bcd4e0ecd25058f6168f4ebfa40b1ed6cf2f66a.tar.xz
spack-2bcd4e0ecd25058f6168f4ebfa40b1ed6cf2f66a.zip
py-pint-xarray: new package (#36106)
* py-pint-xarray: new package * py-pint-xarray: review remarks
-rw-r--r--var/spack/repos/builtin/packages/py-pint-xarray/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pint-xarray/package.py b/var/spack/repos/builtin/packages/py-pint-xarray/package.py
new file mode 100644
index 0000000000..61fe26f6e6
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pint-xarray/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2023 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 PyPintXarray(PythonPackage):
+ """A convenience wrapper for using pint with xarray"""
+
+ homepage = "https://github.com/xarray-contrib/pint-xarray"
+ pypi = "pint-xarray/pint-xarray-0.2.1.tar.gz"
+
+ version("0.3", sha256="3545dfa78bee3f98eba29b8bd17500e3b5cb7c7b03a2c2781c4d4d59b6a82841")
+ version("0.2.1", sha256="1ee6bf74ee7b52b946f226a96469276fa4f5c68f7381c1b2aae66852562cb275")
+
+ depends_on("py-setuptools@42:", type="build")
+ depends_on("py-setuptools-scm@3.4:+toml", type="build")
+
+ depends_on("python@3.8:", when="@0.3:", type=("build", "run"))
+ depends_on("py-numpy@1.17:", type=("build", "run"))
+ depends_on("py-xarray@0.16.1:", type=("build", "run"))
+ depends_on("py-pint@0.16:", type=("build", "run"))
+ depends_on("py-importlib-metadata", when="@0.2.1 ^python@:3.7", type=("build", "run"))