ayaports/testing/py3-duo-client/APKBUILD

50 lines
1 KiB
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=duo_client
pkgname=py3-duo-client
pkgver=5.2.0
pkgrel=0
arch="noarch"
pkgdesc="Reference client for Duo Security APIs"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-Clause"
depends="
py3-six
"
makedepends="
py3-setuptools
py3-wheel
py3-gpep517
py3-installer
"
checkdepends="
py3-pytest
py3-nose2
py3-flake8
py3-mock
py3-tz
py3-freezegun
"
source="$pkgname-$pkgver.tar.gz::https://github.com/duosecurity/duo_client_python/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir"/${_pyname}_python-$pkgver
subpackages="$pkgname-pyc"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest -v
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
78729409ccc28c85f1456ea1203404228a4c6b58a8b63ac0b090af9eb515ea36d2ed372338f72ca3da3b864a67d391d0782254670b9448c272c819f2410fe7a2 py3-duo-client-5.2.0.tar.gz
"