diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-14 15:54:31 +0000 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:19:04 +0100 |
| commit | 2d930d5a7056055b3eff3c477824ac85f4c0689a (patch) | |
| tree | b4afcd119845c74cdba3954054842c95b092fab4 /gnu | |
| parent | 602cf6ca460b14944c2f64d79af75d2cbc6d1037 (diff) | |
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
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/statistics.scm | 76 |
1 files changed, 42 insertions, 34 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index facd439a70b..80221c193e8 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 |
