diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-rioxarray/package.py | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/py-rioxarray/package.py b/var/spack/repos/builtin/packages/py-rioxarray/package.py index 0eba71e8a7..720937c102 100644 --- a/var/spack/repos/builtin/packages/py-rioxarray/package.py +++ b/var/spack/repos/builtin/packages/py-rioxarray/package.py @@ -16,13 +16,30 @@ class PyRioxarray(PythonPackage): license("Apache-2.0") + version("0.17.0", sha256="46c29938827fff268d497f7ae277077066fcfbac4e53132ed3d4e2b96455be62") version( "0.4.1.post0", sha256="f043f846724a58518f87dd3fa84acbe39e15a1fac7e64244be3d5dacac7fe62b" ) - depends_on("python@3.7:", type=("build", "run")) + # interpolation variant + variant("interp", default=False, when="@0.17.0:", description="Enable interpolation routines") + depends_on("py-setuptools", type="build") - depends_on("py-rasterio", type=("build", "run")) - depends_on("py-scipy", type=("build", "run")) - depends_on("py-xarray@0.17:", type=("build", "run")) - depends_on("py-pyproj@2.2:", type=("build", "run")) + + with when("@0.17.0"): + depends_on("python@3.10:", type=("build", "run")) + depends_on("py-packaging", type=("build", "run")) + depends_on("py-rasterio@1.3:", type=("build", "run")) + depends_on("py-xarray@2022.3.0:", type=("build", "run")) + depends_on("py-pyproj@3.3:", type=("build", "run")) + depends_on("py-numpy@1.23:", type=("build", "run")) + depends_on("py-scipy", type=("build", "run"), when="+interp") + + with when("@0.4.1.post0"): + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-rasterio", type=("build", "run")) + depends_on("py-xarray@0.17:", type=("build", "run")) + depends_on("py-pyproj@2.2:", type=("build", "run")) + + # not an optional in this version + depends_on("py-scipy", type=("build", "run")) |