testing/py3-halo: build with gpep517

This commit is contained in:
ptrcnull 2024-08-06 14:35:25 +02:00
parent 16bcdbb2e5
commit eea253dd18

View File

@ -3,24 +3,27 @@
pkgname=py3-halo
_pyname=halo
pkgver=0.0.31
pkgrel=4
pkgrel=5
pkgdesc="Python library for terminal spinners"
url="https://github.com/manrajgrover/halo"
arch="noarch"
license="MIT"
depends="python3 py3-log-symbols py3-spinners py3-termcolor py3-colorama py3-six"
makedepends="py3-setuptools"
options="!check" # no tests
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://pypi.python.org/packages/source/h/halo/halo-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
options="!check" # no tests
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="