2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
2023-05-24 13:37:59 +00:00
|
|
|
, autograd
|
|
|
|
, autograd-gamma
|
2023-03-04 12:14:45 +00:00
|
|
|
, buildPythonPackage
|
2023-05-24 13:37:59 +00:00
|
|
|
, dill
|
2023-03-04 12:14:45 +00:00
|
|
|
, fetchFromGitHub
|
2023-05-24 13:37:59 +00:00
|
|
|
, flaky
|
|
|
|
, formulaic
|
|
|
|
, jinja2
|
|
|
|
, matplotlib
|
2023-03-04 12:14:45 +00:00
|
|
|
, numpy
|
|
|
|
, pandas
|
2023-05-24 13:37:59 +00:00
|
|
|
, psutil
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-03-04 12:14:45 +00:00
|
|
|
, scikit-learn
|
2023-05-24 13:37:59 +00:00
|
|
|
, scipy
|
2023-03-04 12:14:45 +00:00
|
|
|
, sybil
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lifelines";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.28.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CamDavidsonPilon";
|
|
|
|
repo = "lifelines";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-6j+RgKeBCvpcREf7j8NE2x+IUI/LaoT6jsnHny4ccVo=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
autograd
|
|
|
|
autograd-gamma
|
|
|
|
formulaic
|
2023-05-24 13:37:59 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
2023-03-04 12:14:45 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-04 12:14:45 +00:00
|
|
|
dill
|
|
|
|
flaky
|
|
|
|
jinja2
|
|
|
|
psutil
|
|
|
|
pytestCheckHook
|
|
|
|
scikit-learn
|
|
|
|
sybil
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"lifelines"
|
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"lifelines/tests/test_estimation.py"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_datetimes_to_durations_with_different_frequencies"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-04 12:14:45 +00:00
|
|
|
description = "Survival analysis in Python";
|
2023-05-24 13:37:59 +00:00
|
|
|
homepage = "https://lifelines.readthedocs.io";
|
|
|
|
changelog = "https://github.com/CamDavidsonPilon/lifelines/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ swflint ];
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|