mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
https://pypi.org/project/wgconfig/ Parsing and writing WireGuard configuration files (comment preserving)
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# 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.0.3
|
|
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="
|
|
8cb10c223bc7ebc911c81b30a9b4dfb7295dc4eeef90d88cf7b8cc8d6ee673ba0edacfe833b347e500963840506bce2a26967de823d4a7db3e39949086895f8b wgconfig-1.0.3.tar.gz
|
|
"
|