From 5e05d60785e7925f6ebac0d133d04233bff5b8e0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 14 Dec 2025 08:48:30 +0000 Subject: [PATCH] gnu: python-xarray: Update to 2025.12.0. * gnu/packages/python-science.scm (python-xarray): Update to 2025.12.0. [arguments] Rework skipped tests, do not depend on MyPy type checker. [native-inputs]: Remove python-wheel; add python-pytest-asyncio. Change-Id: I49e33b614926cde8bd5fad09ac278bc79e9d3cb1 Signed-off-by: Rutherther --- gnu/packages/python-science.scm | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 97e8ff4f6d239cafc1146f387b9a7a2e312462f8..18ae6157d00787e548aabd14cb775fca887bc8ab 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -4737,31 +4737,32 @@ two-dimensional renderings such as scatter plots and histograms. (define-public python-xarray (package (name "python-xarray") - (version "2023.12.0") + (version "2025.12.0") (source (origin (method url-fetch) (uri (pypi-uri "xarray" version)) (sha256 (base32 - "0cyldwchcrmbm1y7l1ry70kk8zdh7frxci3c6iwf4iyyj34dnra5")))) + "1vczqm5daz79n7w3ycd0m1wf0bf78wd84w6xbgac8sfcvkxadxkk")))) (build-system pyproject-build-system) (arguments (list - #:test-flags - ;; This needs a more recent version of python-hypothesis - '(list "--ignore=xarray/tests/test_strategies.py" - ;; These are known to fail with Pandas 2 - "-k" - (string-append "not test_datetime_conversion_warning" - " and not test_timedelta_conversion_warning" - ;; These expect deprecation warnings that are not - ;; emitted in our case. - " and not test_drop_index_labels" - " and not test_rename_multiindex")))) + ;; tests: 6677 passed, 9632 skipped, 14 xfailed, 4 xpassed, 53 warnings + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-pytest-config + (lambda _ + (substitute* "pyproject.toml" + ((".*--mypy-.*") ""))))))) (native-inputs - (list python-setuptools python-setuptools-scm python-pytest python-wheel)) + (list python-pytest + python-pytest-asyncio + python-setuptools + python-setuptools-scm)) (propagated-inputs - (list python-numpy python-packaging python-pandas)) + (list python-numpy + python-packaging + python-pandas)) (home-page "https://github.com/pydata/xarray") (synopsis "N-D labeled arrays and datasets") (description "Xarray (formerly xray) makes working with labelled