blob: b3c68b4e6e5f0ffa04eb4b0052f8bb9f046c82b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{ lib
, buildPythonPackage
, fetchPypi
, jax
, jaxlib
, multipledispatch
, numpy
, pytestCheckHook
, pythonOlder
, tqdm
}:
buildPythonPackage rec {
pname = "numpyro";
version = "0.10.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit version pname;
hash = "sha256-36iW8ByN9D3dQWY68rPi/Erqc0ieZpR06DMpsYOykVA=";
};
propagatedBuildInputs = [
jax
jaxlib
numpy
multipledispatch
tqdm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"numpyro"
];
disabledTests = [
# AssertionError due to tolerance issues
"test_beta_binomial_log_prob"
"test_collapse_beta"
"test_cpu"
"test_gamma_poisson"
"test_gof"
"test_hpdi"
"test_kl_univariate"
"test_mean_var"
# Tests want to download data
"data_load"
"test_jsb_chorales"
];
meta = with lib; {
description = "Library for probabilistic programming with NumPy";
homepage = "https://num.pyro.ai/";
changelog = "https://github.com/pyro-ppl/numpyro/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|