# Maintainer: Andrew Sun _pkgname=lifelines pkgname=python-lifelines pkgver=0.28.0 pkgrel=1 pkgdesc="Survival analysis in Python" url="https://github.com/CamDavidsonPilon/lifelines" arch=('any') license=('MIT') depends=('ipython' 'python-autograd-gamma' 'python-matplotlib' 'python-pandas' 'python-scikit-learn' 'python-formulaic') makedepends=('python-setuptools') options=(!emptydirs) source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/CamDavidsonPilon/lifelines/archive/refs/tags/v${pkgver}.tar.gz") sha256sums=('18831a3c8e4e101878d53cf67c83afecb1df24bc18facebb2aa2cbc1a8bf5368') build() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } package() { cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }