2019-12-12 00:50:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-02-03 17:58:38 +00:00
|
|
|
, bokeh
|
2019-12-12 00:50:28 +00:00
|
|
|
, emcee
|
|
|
|
, matplotlib
|
|
|
|
, netcdf4
|
|
|
|
, numba
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, pytest
|
|
|
|
, scipy
|
|
|
|
, setuptools
|
|
|
|
, tensorflow-probability
|
|
|
|
, xarray
|
|
|
|
#, h5py (used by disabled tests)
|
|
|
|
#, pymc3 (broken)
|
|
|
|
#, pyro-ppl (broken)
|
|
|
|
#, pystan (not packaged)
|
|
|
|
#, numpyro (not packaged)
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "arviz";
|
2021-03-24 09:28:08 +00:00
|
|
|
version = "0.11.2";
|
2019-12-12 00:50:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "arviz-devs";
|
|
|
|
repo = "arviz";
|
2020-10-03 18:21:50 +00:00
|
|
|
rev = "v${version}";
|
2021-03-24 09:28:08 +00:00
|
|
|
sha256 = "0npwrpy262y6zqd0znz4w7ikfdyz4kc4gikmkpj6h1j6vxggrfaa";
|
2019-12-12 00:50:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
# needed to install
|
|
|
|
matplotlib
|
|
|
|
netcdf4
|
|
|
|
pandas
|
|
|
|
xarray
|
|
|
|
# needed to import
|
|
|
|
setuptools
|
|
|
|
# not needed to import, but used by many functions
|
|
|
|
# and is listed as a dependency in the documentation
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2020-02-03 17:58:38 +00:00
|
|
|
bokeh
|
2019-12-12 00:50:28 +00:00
|
|
|
emcee
|
|
|
|
numba
|
|
|
|
pytest
|
|
|
|
tensorflow-probability
|
|
|
|
#h5py (used by disabled tests)
|
|
|
|
#pymc3 (broken)
|
|
|
|
#pyro-ppl (broken)
|
|
|
|
#pystan (not packaged)
|
|
|
|
#numpyro (not packaged)
|
|
|
|
];
|
|
|
|
|
|
|
|
# check requires pymc3 and pyro-ppl, which are currently broken, and pystan
|
|
|
|
# and numpyro, which are not yet packaged, some checks also need to make
|
|
|
|
# directories and do not have permission to do so. So we can only check part
|
|
|
|
# of the package
|
|
|
|
# Additionally, there are some failures with the plots test, which revolve
|
|
|
|
# around attempting to output .mp4 files through an interface that only wants
|
|
|
|
# to output .html files.
|
|
|
|
# The following test have been disabled as a result: data_cmdstanpy,
|
|
|
|
# data_numpyro, data_pyro, data_pystan, and plots.
|
|
|
|
checkPhase = ''
|
|
|
|
cd arviz/tests/
|
2020-04-11 20:08:15 +00:00
|
|
|
export HOME=$TMPDIR
|
|
|
|
pytest \
|
|
|
|
base_tests/test_data.py \
|
|
|
|
base_tests/test_diagnostics.py \
|
|
|
|
base_tests/test_plot_utils.py \
|
|
|
|
base_tests/test_rcparams.py \
|
|
|
|
base_tests/test_stats.py \
|
|
|
|
base_tests/test_stats_utils.py \
|
|
|
|
base_tests/test_utils.py \
|
|
|
|
external_tests/test_data_cmdstan.py \
|
|
|
|
external_tests/test_data_emcee.py \
|
|
|
|
external_tests/test_data_tfp.py
|
2019-12-12 00:50:28 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ArviZ is a Python package for exploratory analysis of Bayesian models";
|
|
|
|
homepage = "https://arviz-devs.github.io/arviz/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.omnipotententity ];
|
|
|
|
};
|
|
|
|
}
|