nixpkgs/pkgs/development/python-modules/bambi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

94 lines
1.9 KiB
Nix
Raw Normal View History

2023-01-13 18:09:56 +00:00
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
2023-01-13 18:09:56 +00:00
arviz,
formulae,
graphviz,
pandas,
pymc,
blackjax,
numpyro,
pytestCheckHook,
2023-01-13 18:09:56 +00:00
}:
buildPythonPackage rec {
pname = "bambi";
version = "0.13.0";
pyproject = true;
disabled = pythonOlder "3.8";
2023-01-13 18:09:56 +00:00
src = fetchFromGitHub {
owner = "bambinos";
repo = "bambi";
2023-01-13 18:09:56 +00:00
rev = "refs/tags/${version}";
hash = "sha256-9+uTyV3mQlHOKAjXohwkhTzNe/+I5XR/LuH1ZYvhc8I=";
2023-01-13 18:09:56 +00:00
};
nativeBuildInputs = [ setuptools ];
2023-01-13 18:09:56 +00:00
propagatedBuildInputs = [
arviz
formulae
graphviz
2023-01-13 18:09:56 +00:00
pandas
pymc
];
preCheck = ''
export HOME=$(mktemp -d)
'';
2023-01-13 18:09:56 +00:00
nativeCheckInputs = [
blackjax
numpyro
pytestCheckHook
];
2023-01-13 18:09:56 +00:00
disabledTests = [
# Tests require network access
"test_alias_equal_to_name"
"test_average_by"
"test_ax"
"test_basic"
"test_censored_response"
"test_custom_prior"
2023-01-13 18:09:56 +00:00
"test_data_is_copied"
"test_distributional_model"
"test_elasticity"
"test_extra_namespace"
"test_fig_kwargs"
"test_gamma_with_splines"
"test_group_effects"
"test_hdi_prob"
"test_legend"
"test_non_distributional_model"
"test_normal_with_splines"
2023-01-13 18:09:56 +00:00
"test_predict_offset"
"test_predict_new_groups"
"test_predict_new_groups_fail"
"test_set_alias_warnings"
"test_subplot_kwargs"
"test_transforms"
"test_use_hdi"
"test_with_groups"
"test_with_group_and_panel"
"test_with_user_values"
2023-01-13 18:09:56 +00:00
];
pythonImportsCheck = [ "bambi" ];
2023-01-13 18:09:56 +00:00
meta = with lib; {
homepage = "https://bambinos.github.io/bambi";
description = "High-level Bayesian model-building interface";
changelog = "https://github.com/bambinos/bambi/releases/tag/${version}";
2023-01-13 18:09:56 +00:00
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
# https://github.com/NixOS/nixpkgs/issues/310940
broken = true;
2023-01-13 18:09:56 +00:00
};
}