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 19}: 20 21buildPythonPackage rec { 22 pname = "lifelines"; 23 version = "0.27.8"; 24 format = "setuptools"; 25 26 disabled = pythonOlder "3.7"; 27 28 src = fetchFromGitHub { 29 owner = "CamDavidsonPilon"; 30 repo = "lifelines"; 31 rev = "refs/tags/v${version}"; 32 hash = "sha256-2AjqN4TtBY1KtgFlY0E2UcFUHniHe2Hge+JaUQd4gO8="; 33 }; 34 35 propagatedBuildInputs = [ 36 autograd 37 autograd-gamma 38 formulaic 39 matplotlib 40 numpy 41 pandas 42 scipy 43 ]; 44 45 nativeCheckInputs = [ 46 dill 47 flaky 48 jinja2 49 psutil 50 pytestCheckHook 51 scikit-learn 52 sybil 53 ]; 54 55 pythonImportsCheck = [ 56 "lifelines" 57 ]; 58 59 disabledTestPaths = [ 60 "lifelines/tests/test_estimation.py" 61 ]; 62 63 disabledTests = [ 64 "test_datetimes_to_durations_with_different_frequencies" 65 ]; 66 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 }; 74}