python310Packages.lifelines: init at 0.27.4

This commit is contained in:
Samuel W. Flint 2022-10-01 17:18:30 -05:00 committed by Sandro Jäckel
parent 30ed80066d
commit 1ed35fd27d
No known key found for this signature in database
GPG Key ID: B1763F8651144063
2 changed files with 65 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };