guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 801903a27b2ba5f78496c4da42014e1cd63dc70e
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Dec 14 15:54:31 2025 +0000

    gnu: python-arviz: Update to 0.22.0.
    
    * gnu/packages/statistics.scm (python-arviz): Update to 0.22.0.
    [arguments] <test-flags>: Run base tests only, deselect 10 tests.
    <phases>: Remove 'remove-radon, and 'write-permission; add 'pre-check.
    [propagated-inputs]: Remove python-dm-tree, python-setuptools, and
    python-wheel.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: If8ab6c9917cb19463ab07935709d9d2f10c2329a
---
 gnu/packages/statistics.scm | 76 +++++++++++++++++++++++++--------------------
 1 file changed, 42 insertions(+), 34 deletions(-)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index facd439a70..80221c193e 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -320,46 +320,54 @@ be output in text, PostScript, PDF or HTML.")
 (define-public python-arviz
   (package
     (name "python-arviz")
-    (version "0.21.0")
-    (source (origin
-              (method git-fetch)        ; PyPI misses some test files
-              (uri (git-reference
-                    (url "https://github.com/arviz-devs/arviz";)
-                    (commit (string-append "v" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "02bqpl61gzn65vhwspi6gx9ln2wlwh8xm418i8vhmls44rvszcxf"))))
+    (version "0.22.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/arviz-devs/arviz";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "04l1zsr2m80avvrh73v34sp4p9fzakmgliszsww2wmv99cl5jdk7"))))
     (build-system pyproject-build-system)
     (arguments
-     ;; FIXME: matplotlib tests fail because of the "--save" test flag.
-     (list #:test-flags #~'("--ignore"
-                            "arviz/tests/base_tests/test_plots_matplotlib.py")
+     (list
+      ;; tests: 3384 passed, 147 skipped, 10 deselected
+      #:test-flags
+      #~(list "-k" (string-join
+                    ;; Network access is required.
+                    (list "not test_plot_ppc_transposed"
+                          "test_plot_separation[kwargs0]"
+                          "test_plot_separation[kwargs1]"
+                          "test_plot_separation[kwargs2]"
+                          "test_plot_separation[kwargs3]"
+                          "test_plot_separation[kwargs4]"
+                          "test_plot_trace_legend[False-False]"
+                          "test_plot_trace_legend[False-True]"
+                          "test_plot_trace_legend[True-False]"
+                          "test_plot_trace_legend[True-True]")
+                    " and not ")
+              "arviz/tests/base_tests/")
            #:phases
            #~(modify-phases %standard-phases
-               (add-after 'unpack 'remove-radon
-                 (lambda _
-                   (delete-file
-                    ;; This dataset is loaded remotely, it's not supposed to
-                    ;; be copied locally.
-                    "arviz/data/example_data/code/radon/radon.json")))
-               (add-before 'check 'write-permission
+               (add-before 'check 'pre-check
                  (lambda _
-                   ;; 3 tests require write permission.
                    (setenv "HOME" "/tmp"))))))
-    (native-inputs (list python-cloudpickle python-pytest))
-    (propagated-inputs (list python-dm-tree
-                             python-h5netcdf
-                             python-matplotlib
-                             python-numpy
-                             python-packaging
-                             python-pandas
-                             python-scipy
-                             python-typing-extensions
-                             python-xarray
-                             python-xarray-einstats
-                             python-setuptools
-                             python-wheel))
+    (native-inputs
+     (list python-cloudpickle
+           python-pytest
+           python-setuptools))
+    (propagated-inputs
+     (list python-h5netcdf
+           python-matplotlib
+           python-numpy
+           python-packaging
+           python-pandas
+           python-scipy
+           python-typing-extensions
+           python-xarray
+           python-xarray-einstats))
     (home-page "https://github.com/arviz-devs/arviz";)
     (synopsis "Exploratory analysis of Bayesian models")
     (description

Reply via email to