diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 53 |
1 files changed, 32 insertions, 21 deletions
@@ -1,24 +1,35 @@ -# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley) -_modulename=ripser -pkgname=python-$_modulename -pkgver=0.4.1 +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +# Contributor: Luis Martinez <luis dot martinez at disroot dot org> +# Contributor: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley) +_base=ripser +pkgname=python-${_base} +pkgver=0.6.8 pkgrel=1 -pkgdesc="nested sampling visualisation" -arch=(any) -url="https://github.com/scikit-tda/ripser.py" -license=('MIT') -groups=() -depends=('python' 'cython' 'python-numpy' 'python-scipy' 'python-scikit-learn' 'python-persim') -makedepends=('python-setuptools' 'cython') -provides=() -conflicts=() -replaces=() -backup=() -options=(!emptydirs) -install= -source=("${url}/archive/v${pkgver}.tar.gz") -sha256sums=('ec7f34935f5e6d3430c7f5a27007ccf4f50a21936d4045c0d3aa1e77209ef8fa') +pkgdesc="A Lean Persistent Homology Library for Python" +arch=(x86_64) +url="https://github.com/scikit-tda/${_base}.py" +license=(MIT) +depends=(python-persim) +makedepends=(python-build python-installer python-setuptools python-wheel cython) +checkdepends=(python-pytest) +changelog=CHANGELOG.md +source=(${_base}.py-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) +sha512sums=('86e5f5aeee23428374197ebee7d582e0e61c01acdc8860f1ac089993efb62d400dbfca21a920f9911c603e7604d8ee4f803bd89b1a3cbc5750d4a876fab6aca0') + +build() { + cd ${_base}.py-${pkgver} + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd ${_base}.py-${pkgver} + python -m venv --system-site-packages test-env + test-env/bin/python -m installer dist/*.whl + test-env/bin/python -m pytest +} + package() { - cd "$srcdir/${_modulename}.py-$pkgver" - python setup.py install --root="$pkgdir/" --optimize=1 + cd ${_base}.py-${pkgver} + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" } |