Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / lifelines / default.nix
blobd0dd1b757fae23987f67419e4dd1e262b2eb8137
1 { lib
2 , autograd
3 , autograd-gamma
4 , buildPythonPackage
5 , dill
6 , fetchFromGitHub
7 , flaky
8 , formulaic
9 , jinja2
10 , matplotlib
11 , numpy
12 , pandas
13 , psutil
14 , pytestCheckHook
15 , pythonOlder
16 , scikit-learn
17 , scipy
18 , sybil
21 buildPythonPackage rec {
22   pname = "lifelines";
23   version = "0.27.8";
24   format = "setuptools";
26   disabled = pythonOlder "3.7";
28   src = fetchFromGitHub {
29     owner = "CamDavidsonPilon";
30     repo = "lifelines";
31     rev = "refs/tags/v${version}";
32     hash = "sha256-2AjqN4TtBY1KtgFlY0E2UcFUHniHe2Hge+JaUQd4gO8=";
33   };
35   propagatedBuildInputs = [
36     autograd
37     autograd-gamma
38     formulaic
39     matplotlib
40     numpy
41     pandas
42     scipy
43   ];
45   nativeCheckInputs = [
46     dill
47     flaky
48     jinja2
49     psutil
50     pytestCheckHook
51     scikit-learn
52     sybil
53   ];
55   pythonImportsCheck = [
56     "lifelines"
57   ];
59   disabledTestPaths = [
60     "lifelines/tests/test_estimation.py"
61   ];
63   disabledTests = [
64     "test_datetimes_to_durations_with_different_frequencies"
65   ];
67   meta = with lib; {
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 = licenses.mit;
72     maintainers = with maintainers; [ swflint ];
73   };