2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, emcee
|
2023-05-24 13:37:59 +00:00
|
|
|
, h5netcdf
|
2020-04-24 23:36:52 +00:00
|
|
|
, matplotlib
|
|
|
|
, netcdf4
|
|
|
|
, numba
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pytest
|
2022-06-16 17:23:12 +00:00
|
|
|
, setuptools
|
2022-02-10 20:34:41 +00:00
|
|
|
, cloudpickle
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
2022-06-16 17:23:12 +00:00
|
|
|
, packaging
|
2022-02-10 20:34:41 +00:00
|
|
|
, typing-extensions
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, xarray
|
2022-06-16 17:23:12 +00:00
|
|
|
, xarray-einstats
|
2022-02-10 20:34:41 +00:00
|
|
|
, zarr
|
2023-01-20 10:41:00 +00:00
|
|
|
, ffmpeg
|
2022-02-10 20:34:41 +00:00
|
|
|
, h5py
|
2022-06-16 17:23:12 +00:00
|
|
|
, jaxlib
|
|
|
|
, torchvision
|
|
|
|
, jax
|
|
|
|
# , pymc3 (circular dependency)
|
|
|
|
, pyro-ppl
|
|
|
|
#, pystan (not packaged)
|
|
|
|
, numpyro
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arviz";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.15.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arviz-devs";
|
2022-06-16 17:23:12 +00:00
|
|
|
repo = pname;
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-jjA+yltvpPZldIxXXqu1bXCLqpiU5/NBYTPlI9ImGVs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
h5netcdf
|
2020-04-24 23:36:52 +00:00
|
|
|
matplotlib
|
|
|
|
netcdf4
|
|
|
|
numpy
|
2022-06-16 17:23:12 +00:00
|
|
|
packaging
|
|
|
|
pandas
|
2020-04-24 23:36:52 +00:00
|
|
|
scipy
|
2022-06-16 17:23:12 +00:00
|
|
|
setuptools
|
|
|
|
xarray
|
|
|
|
xarray-einstats
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
cloudpickle
|
2020-04-24 23:36:52 +00:00
|
|
|
emcee
|
2023-01-20 10:41:00 +00:00
|
|
|
ffmpeg
|
2022-06-16 17:23:12 +00:00
|
|
|
h5py
|
|
|
|
jax
|
|
|
|
jaxlib
|
2020-04-24 23:36:52 +00:00
|
|
|
numba
|
2022-06-16 17:23:12 +00:00
|
|
|
numpyro
|
|
|
|
# pymc3 (circular dependency)
|
|
|
|
pyro-ppl
|
|
|
|
# pystan (not packaged)
|
|
|
|
pytestCheckHook
|
|
|
|
torchvision
|
2022-02-10 20:34:41 +00:00
|
|
|
zarr
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"arviz/tests/base_tests/"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_plot_separation"
|
|
|
|
"test_plot_trace_legend"
|
|
|
|
"test_cov"
|
2022-11-02 22:02:43 +00:00
|
|
|
# countourpy is not available at the moment
|
|
|
|
"test_plot_kde"
|
|
|
|
"test_plot_kde_2d"
|
|
|
|
"test_plot_pair"
|
2023-05-24 13:37:59 +00:00
|
|
|
# Array mismatch
|
|
|
|
"test_plot_ts"
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"arviz"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Library for exploratory analysis of Bayesian models";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://arviz-devs.github.io/arviz/";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/arviz-devs/arviz/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ omnipotententity ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|