diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-01-04 00:36:47 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:21:18 +0100 |
| commit | 7f0bd3f662be11fce8d4bca62ec1570e9eb22126 (patch) | |
| tree | 43b166aba4d95dfbb2671a2311c409e9bfa2800d /gnu/packages | |
| parent | 561736d94df6eb8f3e59c7f38fde84c2442e0956 (diff) | |
gnu: Add python-xarray-dataclass.
* gnu/packages/python-science.scm (python-xarray-dataclass): New variable.
Change-Id: Id4293a97741704c434b6847b7b1ede8d35dd1edd
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-science.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 43b5a029d4c..55370880264 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -4892,6 +4892,39 @@ large and growing library of domain-agnostic functions for advanced analytics and visualization with these data structures.") (license license:asl2.0))) +(define-public python-xarray-dataclass + (package + (name "python-xarray-dataclass") + (version "3.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/xarray-contrib/xarray-dataclass/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1q3y9gbzrp1mh48y7gggqgggwnarxdn32h907mfax1hi9ap6ywil")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest + python-hatchling)) + (propagated-inputs + (list python-numpy + python-typing-extensions + python-xarray)) + (home-page "https://github.com/xarray-contrib/xarray-dataclass/") + (synopsis "Xarray data creation by data classes") + (description + "xarray-dataclass is a Python package that makes it easy to create +@url{https://xarray.pydata.org/en/stable/index.html, xarray}'s DataArray and +Dataset objects that are \"typed\" (i.e. fixed dimensions, data type, +coordinates, attributes, and name) using +@url{https://docs.python.org/3/library/dataclasses.html, the Python's +dataclass}. It's a successor of not maintained +https://github.com/astropenguin/xarray-dataclasses.") + (license license:expat))) + (define-public python-xarray-dataclasses (package (name "python-xarray-dataclasses") |
