Gaetan Lepage 2024-07-19 21:27:31 +02:00
parent fdcd8bd112
commit 8ac8f218a0

View File

@ -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 ];
};
}