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 setuptools,
20 sybil,
21}:
22
23buildPythonPackage rec {
24 pname = "lifelines";
25 version = "0.30.0";
26 pyproject = true;
27
28 src = fetchFromGitHub {
29 owner = "CamDavidsonPilon";
30 repo = "lifelines";
31 tag = "v${version}";
32 hash = "sha256-rbt0eON8Az5jDvj97RDn3ppWyjbrSa/xumbwhq21g6g=";
33 };
34
35 build-system = [ setuptools ];
36
37 dependencies = [
38 autograd
39 autograd-gamma
40 formulaic
41 matplotlib
42 numpy
43 pandas
44 scipy
45 ];
46
47 nativeCheckInputs = [
48 dill
49 flaky
50 jinja2
51 psutil
52 pytestCheckHook
53 scikit-learn
54 sybil
55 ];
56
57 pythonImportsCheck = [ "lifelines" ];
58
59 disabledTestPaths = [ "lifelines/tests/test_estimation.py" ];
60
61 disabledTests = [
62 "test_datetimes_to_durations_with_different_frequencies"
63 # AssertionError
64 "test_mice_scipy"
65 ];
66
67 meta = {
68 description = "Survival analysis in Python";
69 homepage = "https://lifelines.readthedocs.io";
70 changelog = "https://github.com/CamDavidsonPilon/lifelines/blob/v${version}/CHANGELOG.md";
71 license = lib.licenses.mit;
72 maintainers = with lib.maintainers; [ swflint ];
73 };
74}