aports/testing/py3-wgconfig/APKBUILD

39 lines
1.1 KiB
Text

# Automatically generated by apkbuild-pypi, template 4
# Contributor: Dirk Henrici <inet.alpinelinux@henrici.name>
# Maintainer: Dirk Henrici <inet.alpinelinux@henrici.name>
pkgname=py3-wgconfig
pkgver=1.1.0
pkgrel=0
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=wgconfig
pkgdesc="parsing and writing WireGuard configuration files"
url="https://pypi.org/project/wgconfig/"
arch="noarch"
license="AGPL-3.0-or-later"
depends="py3-future"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/w/wgconfig/wgconfig-$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="
f1ca13da33836ba9b3d9ca00db3611c03317a0ea4a447eb0e101803add91ce637d3e402d09c5a72c862e293e7a315eb0e270ea0b6dd86a5e96a9f9126bcf1c97 wgconfig-1.1.0.tar.gz
"