mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/py3-python-iptables: new aport
This commit is contained in:
parent
f0273feae6
commit
3edb062005
40
testing/py3-python-iptables/APKBUILD
Normal file
40
testing/py3-python-iptables/APKBUILD
Normal file
@ -0,0 +1,40 @@
|
||||
# Automatically generated by apkbuild-pypi, template 4
|
||||
# Contributor: Niklas Meyer <derlinkman@gmail.com>
|
||||
# Maintainer: Niklas Meyer <derlinkman@gmail.com>
|
||||
pkgname=py3-python-iptables
|
||||
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
|
||||
_pkgreal=python-iptables
|
||||
pkgver=1.0.1
|
||||
pkgrel=0
|
||||
pkgdesc="Python bindings for iptables"
|
||||
url="https://pypi.org/project/python-iptables/"
|
||||
arch="all"
|
||||
license="Apache-2.0"
|
||||
depends="iptables"
|
||||
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/p/python-iptables/python-iptables-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$_pkgreal-$pkgver"
|
||||
options="!check" #needs iptables for check
|
||||
|
||||
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="
|
||||
85e251b58b71d8428d061861d924454fcda1fbacc429a0347223ce7eee6f7543894ab6231ea64346bb87dd1248580d5cdf851f12e1e5ed98e68f93a895a4c055 python-iptables-1.0.1.tar.gz
|
||||
"
|
||||
Loading…
x
Reference in New Issue
Block a user