summaryrefslogtreecommitdiff
path: root/gnu/packages/python-science.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-12-14 08:48:30 +0000
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:18:58 +0100
commit5e05d60785e7925f6ebac0d133d04233bff5b8e0 (patch)
tree96266b8065fa8e783278471e4c3ecd892254fac2 /gnu/packages/python-science.scm
parent32160d32e46b76e58b8ec3c8a09584def86f2f6a (diff)
gnu: python-xarray: Update to 2025.12.0.
* gnu/packages/python-science.scm (python-xarray): Update to 2025.12.0. [arguments] <test-flags> 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 <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/python-science.scm')
-rw-r--r--gnu/packages/python-science.scm31
1 files changed, 16 insertions, 15 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 97e8ff4f6d2..18ae6157d00 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