From caab89b9c941c197b235c43bb6a1e55ebfc821d8 Mon Sep 17 00:00:00 2001 From: Andrew W Elble Date: Wed, 21 Oct 2020 23:33:02 -0400 Subject: New package: py-lifelines (#19429) * py-lifelines * also carry the newer version of lifelines * 0.25.5 needs python >= 3.6 --- .../repos/builtin/packages/py-lifelines/package.py | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-lifelines/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-lifelines/package.py b/var/spack/repos/builtin/packages/py-lifelines/package.py new file mode 100644 index 0000000000..ddbe26a06e --- /dev/null +++ b/var/spack/repos/builtin/packages/py-lifelines/package.py @@ -0,0 +1,33 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + + +class PyLifelines(PythonPackage): + """Survival analysis was originally developed and applied heavily + by the actuarial and medical community. Its purpose was to answer + *why do events occur now versus later* under uncertainty (where + *events* might refer to deaths, disease remission, + etc.). *lifelines* is a pure Python implementation of the best + parts of survival analysis.""" + + homepage = "https://github.com/CamDavidsonPilon/lifelines" + url = "https://pypi.io/packages/source/l/lifelines/lifelines-0.25.5.tar.gz" + + version('0.25.5', sha256='f24260aa371829354440dfc2c1be8d59d9e841cce7a933230213cecd67787b89') + version('0.9.4', sha256='0f19a8b18ace80c231de60487b2b1a3de3eb418445c6a6d0d72c1110d860f676') + + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type=('build', 'run'), when='@0.9.4') + depends_on('py-scipy', type=('build', 'run'), when='@0.9.4') + depends_on('py-pandas@0.18.0:', type=('build', 'run'), when='@0.9.4') + depends_on('python@3.6:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-pandas@0.23.0:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-scipy@1.2.0:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-numpy@1.14:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-pandas@0.23.0:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-matplotlib@3.0:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-autograd@1.3:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-autograd-gamma@0.3:', type=('build', 'run'), when='@0.25.5:') + depends_on('py-patsy@0.5.0:', type=('build', 'run'), when='@0.25.5:') -- cgit v1.2.3-60-g2f50