py-xarray-regrid: Add new package (#48834)

* Add py-xarray-regrid and required dep flox

* remove boiler plate

* Add missing py310 dep

* py-flox, py-xarray-regrid: add type=("build", "run") to python dependency

---------

Co-authored-by: Wouter Deconinck <wdconinc@gmail.com>
This commit is contained in:
Chris Marsh 2025-02-16 13:22:39 -06:00 committed by GitHub
parent 0ffb61e215
commit 79972d7b57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyFlox(PythonPackage):
"""Fast & furious GroupBy operations for dask.array."""
homepage = "https://github.com/xarray-contrib/flox"
pypi = "flox/flox-0.10.0.tar.gz"
maintainers("Chrismarsh")
license("Apache-2.0", checked_by="Chrismarsh")
version("0.10.0", sha256="4d326f13597c99ea0ce260b54f4c88d071445816efc83e42e3f8d4030e835654")
depends_on("py-setuptools@61:", type="build")
depends_on("py-setuptools-scm@7.0: +toml", type="build")
depends_on("python@3.10:", type=("build", "run"))
depends_on("py-pandas@1.5:", type=("build", "run"))
depends_on("py-packaging@21.3:", type=("build", "run"))
depends_on("py-numpy@1.22:", type=("build", "run"))
depends_on("py-numpy-groupies@0.9.19:", type=("build", "run"))
depends_on("py-toolz", type=("build", "run"))
depends_on("py-scipy@1.9:", type=("build", "run"))

View File

@ -0,0 +1,27 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class PyXarrayRegrid(PythonPackage):
"""Regridding utility for xarray"""
homepage = "https://github.com/xarray-contrib/xarray-regrid"
pypi = "xarray_regrid/xarray_regrid-0.4.0.tar.gz"
maintainers("Chrismarsh")
license("Apache-2.0", checked_by="Chrismarsh")
version("0.4.0", sha256="f0bef6a346e247c657ed293752b5685f3b559b32de546889ca9e9fca14b81f3a")
depends_on("py-hatchling", type="build")
depends_on("python@3.10:", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-xarray", type=("build", "run"))
depends_on("py-flox", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))