From 81eb92105f210516d82f838bdc3d8e8d9d4253bb Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 19 Apr 2024 13:35:37 +0200 Subject: gnu: Add python-xarray-datatree. * gnu/packages/python-science.scm (python-xarray-datatree): New variable. Change-Id: I403f241b6daae8b5c835f4517a1dceca0393f8e6 --- gnu/packages/python-science.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index f5ad86caaa..74b5bc7eb2 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1248,6 +1248,28 @@ (define-public python-xarray-dataclasses name) using the Python's @code{dataclass}.") (license license:expat))) +;; Note that this package will be folded into xarray eventually. See +;; https://github.com/pydata/xarray/issues/8572 for details. +(define-public python-xarray-datatree + (package + (name "python-xarray-datatree") + (version "0.0.14") + (source + (origin + (method url-fetch) + (uri (pypi-uri "xarray-datatree" version)) + (sha256 + (base32 "1x1s25s6dp1f2hck9qw8vl8hgkyy23rcwag2a9vd3w0dbgrrl5i6")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-packaging python-xarray)) + (native-inputs (list python-pytest python-zarr)) + (home-page "https://github.com/xarray-contrib/datatree") + (synopsis "Hierarchical tree-like data structures for xarray") + (description "Datatree is a prototype implementation of a tree-like +hierarchical data structure for @code{xarray}. Datatree is in the process of +being merged upstream into @code{xarray}.") + (license license:asl2.0))) + (define-public python-xarray-einstats (package (name "python-xarray-einstats") -- cgit v1.2.3