python3Packages.lifelines: modernize build, disable broken test

Changed files
+13 -8
pkgs
development
python-modules
lifelines
+13 -8
pkgs/development/python-modules/lifelines/default.nix
···
pythonOlder,
scikit-learn,
scipy,
+
setuptools,
sybil,
}:
buildPythonPackage rec {
pname = "lifelines";
version = "0.30.0";
-
format = "setuptools";
-
-
disabled = pythonOlder "3.9";
+
pyproject = true;
src = fetchFromGitHub {
owner = "CamDavidsonPilon";
···
hash = "sha256-rbt0eON8Az5jDvj97RDn3ppWyjbrSa/xumbwhq21g6g=";
};
-
propagatedBuildInputs = [
+
build-system = [ setuptools ];
+
+
dependencies = [
autograd
autograd-gamma
formulaic
···
disabledTestPaths = [ "lifelines/tests/test_estimation.py" ];
-
disabledTests = [ "test_datetimes_to_durations_with_different_frequencies" ];
+
disabledTests = [
+
"test_datetimes_to_durations_with_different_frequencies"
+
# AssertionError
+
"test_mice_scipy"
+
];
-
meta = with lib; {
+
meta = {
description = "Survival analysis in Python";
homepage = "https://lifelines.readthedocs.io";
changelog = "https://github.com/CamDavidsonPilon/lifelines/blob/v${version}/CHANGELOG.md";
-
license = licenses.mit;
-
maintainers = with maintainers; [ swflint ];
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ swflint ];
};
}