Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.3 KiB
Nix

{
lib,
autograd,
autograd-gamma,
buildPythonPackage,
dill,
fetchFromGitHub,
flaky,
formulaic,
jinja2,
matplotlib,
numpy,
pandas,
psutil,
pytestCheckHook,
pythonOlder,
scikit-learn,
scipy,
setuptools,
sybil,
}:
buildPythonPackage rec {
pname = "lifelines";
version = "0.30.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CamDavidsonPilon";
repo = "lifelines";
tag = "v${version}";
hash = "sha256-rbt0eON8Az5jDvj97RDn3ppWyjbrSa/xumbwhq21g6g=";
};
build-system = [ setuptools ];
dependencies = [
autograd
autograd-gamma
formulaic
matplotlib
numpy
pandas
scipy
];
nativeCheckInputs = [
dill
flaky
jinja2
psutil
pytestCheckHook
scikit-learn
sybil
];
pythonImportsCheck = [ "lifelines" ];
disabledTestPaths = [ "lifelines/tests/test_estimation.py" ];
disabledTests = [
"test_datetimes_to_durations_with_different_frequencies"
# AssertionError
"test_mice_scipy"
];
meta = {
description = "Survival analysis in Python";
homepage = "https://lifelines.readthedocs.io";
changelog = "https://github.com/CamDavidsonPilon/lifelines/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ swflint ];
};
}