From 8ac8f218a02c30ea7e202b20aa12f6eedf699445 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 19 Jul 2024 21:27:31 +0200 Subject: [PATCH] python311Packages.arviz: 0.18.0 -> 0.19.0 Diff: https://github.com/arviz-devs/arviz/compare/refs/tags/v0.18.0...v0.19.0 Changelog: https://github.com/arviz-devs/arviz/blob/v0.19.0/CHANGELOG.md --- .../python-modules/arviz/default.nix | 57 +++++++++---------- 1 file changed, 26 insertions(+), 31 deletions(-) diff --git a/pkgs/development/python-modules/arviz/default.nix b/pkgs/development/python-modules/arviz/default.nix index 19e69d4e087f..2d43abfd70b2 100644 --- a/pkgs/development/python-modules/arviz/default.nix +++ b/pkgs/development/python-modules/arviz/default.nix @@ -1,40 +1,45 @@ { lib, buildPythonPackage, - dm-tree, + pythonOlder, fetchFromGitHub, - emcee, + + # build-system + packaging, + setuptools, + + # dependencies + dm-tree, h5netcdf, matplotlib, - netcdf4, - numba, numpy, pandas, - setuptools, - cloudpickle, - pytestCheckHook, scipy, - packaging, - pythonOlder, typing-extensions, xarray, xarray-einstats, - zarr, + + # checks + bokeh, + cloudpickle, + emcee, ffmpeg, h5py, - jaxlib, - torchvision, jax, - # , pymc3 (circular dependency) + jaxlib, + numba, + numpyro, + #, pymc3 (circular dependency) pyro-ppl, #, pystan (not packaged) - numpyro, - bokeh, + pytestCheckHook, + torchvision, + zarr, }: buildPythonPackage rec { pname = "arviz"; - version = "0.18.0"; + version = "0.19.0"; pyproject = true; disabled = pythonOlder "3.10"; @@ -43,7 +48,7 @@ buildPythonPackage rec { owner = "arviz-devs"; repo = "arviz"; rev = "refs/tags/v${version}"; - hash = "sha256-SZRqSqChQBSA9/jBXN2ds9hh6TI3qZksHai1j2oVsq0="; + hash = "sha256-fwDCl1KWClIOBWIL/ETw3hJUyHdpVpLnRmZoZXL3QXI="; }; build-system = [ @@ -55,7 +60,6 @@ buildPythonPackage rec { dm-tree h5netcdf matplotlib - netcdf4 numpy pandas scipy @@ -65,6 +69,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + bokeh cloudpickle emcee ffmpeg @@ -79,7 +84,6 @@ buildPythonPackage rec { pytestCheckHook torchvision zarr - bokeh ]; preCheck = '' @@ -98,24 +102,15 @@ buildPythonPackage rec { "test_plot_kde" "test_plot_kde_2d" "test_plot_pair" - # Array mismatch - "test_plot_ts" - # The following two tests fail in a common venv-based setup. - # An issue has been opened upstream: https://github.com/arviz-devs/arviz/issues/2282 - "test_plot_ppc_discrete" - "test_plot_ppc_discrete_save_animation" - # Assertion error - "test_data_zarr" - "test_plot_forest" ]; pythonImportsCheck = [ "arviz" ]; - meta = with lib; { + meta = { description = "Library for exploratory analysis of Bayesian models"; homepage = "https://arviz-devs.github.io/arviz/"; changelog = "https://github.com/arviz-devs/arviz/blob/v${version}/CHANGELOG.md"; - license = licenses.asl20; - maintainers = with maintainers; [ omnipotententity ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ omnipotententity ]; }; }