diff --git a/ilot/py3-pyrad/APKBUILD b/ilot/py3-pyrad/APKBUILD new file mode 100644 index 0000000..748ef46 --- /dev/null +++ b/ilot/py3-pyrad/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-pyrad +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=pyrad +pkgver=2.4 +pkgrel=0 +pkgdesc="Python RADIUS Implementation" +url="https://pypi.python.org/project/pyrad" +arch="noarch" +license="BSD-3-Clause" +depends="python3" +checkdepends="py3-pytest" +makedepends="py3-setuptools py3-gpep517 py3-wheel poetry" +source="$pkgname-$pkgver.tar.gz::https://github.com/pyradius/pyrad/archive/refs/tags/$pkgver.tar.gz" +options="!check" # TODO +builddir="$srcdir/$_pkgreal-$pkgver" +subpackages="$pkgname-pyc" + +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 -v +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +e4f4c687596bd226cf2cdb409a8d940c7b665fb7f722d09113dd9a1b05ab176ce8f920b235918ec01695f262930d13b4057b199cf6aac72afa54950c1fb59166 py3-pyrad-2.4.tar.gz +"