From 1ed35fd27d557696092bb1cd9a50ba7833dec10a Mon Sep 17 00:00:00 2001 From: "Samuel W. Flint" Date: Sat, 1 Oct 2022 17:18:30 -0500 Subject: [PATCH] python310Packages.lifelines: init at 0.27.4 --- .../python-modules/lifelines/default.nix | 63 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 65 insertions(+) create mode 100644 pkgs/development/python-modules/lifelines/default.nix diff --git a/pkgs/development/python-modules/lifelines/default.nix b/pkgs/development/python-modules/lifelines/default.nix new file mode 100644 index 000000000000..437a7881b751 --- /dev/null +++ b/pkgs/development/python-modules/lifelines/default.nix @@ -0,0 +1,63 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, numpy +, scipy +, pandas +, matplotlib +, autograd +, autograd-gamma +, formulaic +, scikit-learn +, sybil +, flaky +, jinja2 +, dill +, psutil +}: + +buildPythonPackage rec { + pname = "lifelines"; + version = "0.27.4"; + + src = fetchFromGitHub { + owner = "CamDavidsonPilon"; + repo = "lifelines"; + rev = "v${version}"; + sha256 = "sha256-KDoXplqkTsk85dmcTBhbj2GDcC4ry+2z5C2QHAnBTw4="; + }; + + propagatedBuildInputs = [ + numpy + scipy + pandas + matplotlib + autograd + autograd-gamma + formulaic + ]; + + pythonImportsCheck = [ "lifelines" ]; + + checkInputs = [ + dill + flaky + jinja2 + psutil + pytestCheckHook + scikit-learn + sybil + ]; + + disabledTestPaths = [ + "lifelines/tests/test_estimation.py" + ]; + + meta = { + homepage = "https://lifelines.readthedocs.io"; + description = "Survival analysis in Python"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ swflint ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b127d12a1b85..2b8cc7341e01 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5492,6 +5492,8 @@ self: super: with self; { life360 = callPackage ../development/python-modules/life360 { }; + lifelines = callPackage ../development/python-modules/lifelines { }; + lightgbm = callPackage ../development/python-modules/lightgbm { }; lightning-utilities = callPackage ../development/python-modules/lightning-utilities { };