1{
2 lib,
3 autograd,
4 autograd-gamma,
5 buildPythonPackage,
6 dill,
7 fetchFromGitHub,
8 flaky,
9 formulaic,
10 jinja2,
11 matplotlib,
12 numpy,
13 pandas,
14 psutil,
15 pytestCheckHook,
16 pythonOlder,
17 scikit-learn,
18 scipy,
19 sybil,
20}:
21
22buildPythonPackage rec {
23 pname = "lifelines";
24 version = "0.29.0";
25 format = "setuptools";
26
27 disabled = pythonOlder "3.9";
28
29 src = fetchFromGitHub {
30 owner = "CamDavidsonPilon";
31 repo = "lifelines";
32 rev = "refs/tags/v${version}";
33 hash = "sha256-9ZmecbFjUnWGNf4P3yphiMqG+/ktOYyvMtoZ6sEp1xY=";
34 };
35
36 propagatedBuildInputs = [
37 autograd
38 autograd-gamma
39 formulaic
40 matplotlib
41 numpy
42 pandas
43 scipy
44 ];
45
46 nativeCheckInputs = [
47 dill
48 flaky
49 jinja2
50 psutil
51 pytestCheckHook
52 scikit-learn
53 sybil
54 ];
55
56 pythonImportsCheck = [ "lifelines" ];
57
58 disabledTestPaths = [ "lifelines/tests/test_estimation.py" ];
59
60 disabledTests = [ "test_datetimes_to_durations_with_different_frequencies" ];
61
62 meta = with lib; {
63 description = "Survival analysis in Python";
64 homepage = "https://lifelines.readthedocs.io";
65 changelog = "https://github.com/CamDavidsonPilon/lifelines/blob/v${version}/CHANGELOG.md";
66 license = licenses.mit;
67 maintainers = with maintainers; [ swflint ];
68 };
69}