mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 12:36:40 +02:00
35 lines
1 KiB
Text
35 lines
1 KiB
Text
# Contributor: Eloi Torrents <eloitor@duck.com>
|
|
# Maintainer: Eloi Torrents <eloitor@duck.com>
|
|
pkgname=py3-base58
|
|
pkgver=2.1.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 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() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
e39131ffbcc4f2d64d576fc6a6e7052b4f0ac0e9895819cc3086fec686c276bdfc031e8a3756197a18da576cf165b6d8c8d5e72bed9820e7e4dd4053aa9b8068 py3-base58-2.1.1.tar.gz
|
|
"
|