From 3edb0620057e2597c9e8fb4b07cc1ffb9870ef4e Mon Sep 17 00:00:00 2001 From: Niklas Meyer Date: Fri, 15 Dec 2023 09:16:00 +0000 Subject: [PATCH] testing/py3-python-iptables: new aport --- testing/py3-python-iptables/APKBUILD | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 testing/py3-python-iptables/APKBUILD diff --git a/testing/py3-python-iptables/APKBUILD b/testing/py3-python-iptables/APKBUILD new file mode 100644 index 00000000000..1d186a9195b --- /dev/null +++ b/testing/py3-python-iptables/APKBUILD @@ -0,0 +1,40 @@ +# Automatically generated by apkbuild-pypi, template 4 +# Contributor: Niklas Meyer +# Maintainer: Niklas Meyer +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 +"