mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-10 07:44:15 +02:00
testing/py3-base58: build with gpep517
This commit is contained in:
parent
3dec190daf
commit
875b8ca163
1 changed files with 10 additions and 5 deletions
|
@ -2,27 +2,32 @@
|
|||
# Maintainer: Eloi Torrents <eloitor@duck.com>
|
||||
pkgname=py3-base58
|
||||
pkgver=2.1.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Bitcoin-compatible Base58 and Base58Check implementation"
|
||||
url="https://github.com/keis/base58"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest py3-pyhamcrest py3-pytest-benchmark"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/keis/base58/archive/v$pkgver.tar.gz"
|
||||
builddir="$srcdir/${pkgname/py3-/}-$pkgver"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue