Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, pytestCheckHook
6, arviz
7, blackjax
8, formulae
9, graphviz
10, numpy
11, numpyro
12, pandas
13, pymc
14, scipy
15}:
16
17buildPythonPackage rec {
18 pname = "bambi";
19 version = "0.10.0";
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "bambinos";
24 repo = pname;
25 rev = "refs/tags/${version}";
26 hash = "sha256-D04eTAlckEqgKA+59BRljlyneHYoqqZvLYmt/gBLHcU=";
27 };
28
29 propagatedBuildInputs = [
30 arviz
31 formulae
32 numpy
33 pandas
34 pymc
35 scipy
36 ];
37
38 preCheck = ''export HOME=$(mktemp -d)'';
39
40 nativeCheckInputs = [
41 blackjax
42 graphviz
43 numpyro
44 pytestCheckHook
45 ];
46 disabledTests = [
47 # attempt to fetch data:
48 "test_data_is_copied"
49 "test_predict_offset"
50 ];
51
52 pythonImportsCheck = [ "bambi" ];
53
54 meta = with lib; {
55 homepage = "https://bambinos.github.io/bambi";
56 description = "High-level Bayesian model-building interface";
57 license = licenses.mit;
58 maintainers = with maintainers; [ bcdarwin ];
59 };
60}