git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.arviz: init at 0.5.1 (#73988)
commitaa3fcec6deea9939784a46b555a487e95374193c authorOmnipotentEntity <OmnipotentEntity@gmail.com> dateWed 11 Dec 2019, 19:50 (7 years ago) parenta8d70a0
2 files changed+82
pkgs/development/python-modules/arviz/default.nix+80 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/arviz/default.nixnew file+80
@@ -0,0 +1,80 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, emcee
5+, matplotlib
6+, netcdf4
7+, numba
8+, numpy
9+, pandas
10+, pytest
11+, scipy
12+, setuptools
13+, tensorflow-probability
14+, xarray
15+#, h5py (used by disabled tests)
16+#, pymc3 (broken)
17+#, pyro-ppl (broken)
18+#, pystan (not packaged)
19+#, numpyro (not packaged)
20+}:
21+
22+buildPythonPackage rec {
23+ pname = "arviz";
24+ version = "0.5.1";
25+
26+ src = fetchFromGitHub {
27+ owner = "arviz-devs";
28+ repo = "arviz";
29+ rev = version;
30+ sha256 = "0p600cakix24wz2ridnzy6sp3l1p2kr5s60qc7s82wpv7fw0i9ry";
31+ };
32+
33+ propagatedBuildInputs = [
34+ # needed to install
35+ matplotlib
36+ netcdf4
37+ pandas
38+ xarray
39+ # needed to import
40+ setuptools
41+ # not needed to import, but used by many functions
42+ # and is listed as a dependency in the documentation
43+ numpy
44+ scipy
45+ ];
46+
47+ checkInputs = [
48+ emcee
49+ numba
50+ pytest
51+ tensorflow-probability
52+ #h5py (used by disabled tests)
53+ #pymc3 (broken)
54+ #pyro-ppl (broken)
55+ #pystan (not packaged)
56+ #numpyro (not packaged)
57+ ];
58+
59+ # check requires pymc3 and pyro-ppl, which are currently broken, and pystan
60+ # and numpyro, which are not yet packaged, some checks also need to make
61+ # directories and do not have permission to do so. So we can only check part
62+ # of the package
63+ # Additionally, there are some failures with the plots test, which revolve
64+ # around attempting to output .mp4 files through an interface that only wants
65+ # to output .html files.
66+ # The following test have been disabled as a result: data_cmdstanpy,
67+ # data_numpyro, data_pyro, data_pystan, and plots.
68+ checkPhase = ''
69+ cd arviz/tests/
70+ HOME=$TMPDIR pytest test_{data_cmdstan,data_emcee,data,data_tfp,\
71+ diagnostics,plot_utils,rcparams,stats,stats_utils,utils}.py
72+ '';
73+
74+ meta = with lib; {
75+ description = "ArviZ is a Python package for exploratory analysis of Bayesian models";
76+ homepage = "https://arviz-devs.github.io/arviz/";
77+ license = licenses.asl20;
78+ maintainers = [ maintainers.omnipotententity ];
79+ };
80+}
pkgs/top-level/python-packages.nix+2
@@ -182,6 +182,8 @@ in {
182182 aresponses = callPackage ../development/python-modules/aresponses { };
183183
184184 argon2_cffi = callPackage ../development/python-modules/argon2_cffi { };
185+
186+ arviz = callPackage ../development/python-modules/arviz { };
185187
186188 asana = callPackage ../development/python-modules/asana { };
187189