24 buildPythonPackage rec {
29 src = fetchFromGitHub {
33 hash = "sha256-G8RKTccsJRcLgTQPTOXAgK6ViVEwIQydUwdAexEJ2bc=";
49 optional-dependencies = {
51 # not (yet) available in nixpkgs (https://github.com/NixOS/nixpkgs/pull/345438)
64 export HOME=$(mktemp -d)
69 # Tests require network access
70 "test_alias_equal_to_name"
74 "test_censored_response"
77 "test_distributional_model"
79 "test_extra_namespace"
81 "test_gamma_with_splines"
85 "test_model_with_group_specific_effects"
86 "test_model_with_intercept"
87 "test_model_without_intercept"
88 "test_non_distributional_model"
89 "test_normal_with_splines"
90 "test_predict_new_groups_fail"
91 "test_predict_new_groups"
93 "test_set_alias_warnings"
97 "test_with_group_and_panel"
99 "test_with_user_values"
101 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
102 # Python crash (in matplotlib)
103 # Fatal Python error: Aborted
104 "test_categorical_response"
105 "test_multiple_hsgp_and_by"
106 "test_multiple_outputs_with_alias"
108 "test_term_transformations"
111 disabledTestPaths = [
112 # bayeux-ml is not available
113 "tests/test_alternative_samplers.py"
114 # Tests require network access
115 "tests/test_interpret.py"
116 "tests/test_interpret_messages.py"
119 pythonImportsCheck = [ "bambi" ];
122 description = "High-level Bayesian model-building interface";
123 homepage = "https://bambinos.github.io/bambi";
124 changelog = "https://github.com/bambinos/bambi/releases/tag/${src.tag}";
125 license = lib.licenses.mit;
126 maintainers = with lib.maintainers; [ bcdarwin ];