aports/community/py3-eth-hash/APKBUILD

39 lines
1.2 KiB
Text

# Automatically generated by apkbuild-pypi, template 4
# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-eth-hash
pkgver=0.7.1
pkgrel=0
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=eth-hash
pkgdesc="eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3"
url="https://pypi.org/project/eth-hash/"
arch="noarch"
license="MIT"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ethereum/eth-hash/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
options="!check" # a lot of failures
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest tests
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
06da00ec4d73c67525c9eeabac98e6fce99fe8a5d6dbd2e7a2fdcfd8d9b72c8914782129cc120d07ad3918750a2f18bd7a44ea3b4c3f347fcc2486c35e5ab9b8 py3-eth-hash-0.7.1.tar.gz
"