~ruther/guix-local

5e05d60785e7925f6ebac0d133d04233bff5b8e0 — Sharlatan Hellseher 3 months ago 32160d3
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>
1 files changed, 16 insertions(+), 15 deletions(-)

M gnu/packages/python-science.scm
M gnu/packages/python-science.scm => gnu/packages/python-science.scm +16 -15
@@ 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