# Automatically generated by apkbuild-pypi, template 4 # Contributor: Guy Godfroy # Maintainer: Guy Godfroy pkgname=py3-iterable-io pkgver=1.0.0 pkgrel=0 #_pkgreal is used by apkbuild-pypi to find modules at PyPI _pkgreal=iterable-io pkgdesc="Adapt generators and other iterables to a file-like interface" url="https://github.com/pR0Ps/iterable-io" arch="noarch" license="LGPL-3.0-only" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$_pkgreal-$pkgver.tar.gz::https://github.com/pR0Ps/iterable-io/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$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 .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 33853fea816a0474754bf90f144419ad4033a5c0b7c811441a55126fbe41e902c31b504b7e68fd94bf0dc63e103a5dbd3069fd8852884b7e072f17f961bcbaaa iterable-io-1.0.0.tar.gz "