aports/community/py3-duo-client/APKBUILD
2025-04-02 08:58:42 +00:00

51 lines
1.2 KiB
Text

# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-duo-client
#_pkgreal is used by apkbuild-pypi to find modules at PyPI
_pkgreal=duo_client
pkgver=5.5.0
pkgrel=0
arch="noarch"
pkgdesc="Reference client for Duo Security APIs"
url="https://pypi.python.org/project/duo_client"
license="BSD-3-Clause"
depends="
py3-six
"
makedepends="
py3-setuptools
py3-wheel
py3-gpep517
"
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"/${_pkgreal}_python-$pkgver
subpackages="$pkgname-pyc"
replaces=py3-duo_client # Backwards compatibility
provides=py3-duo_client=$pkgver-r$pkgrel # Backwards compatibility
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="
2b21ac382435ba4cca3992a9cb587bfa32e76fbe096b0eb8f3c4d9d957e3ce7042c0cd3973a97987f9c3f78e6b09225400741dce03d459d008742e47c25d7f64 py3-duo-client-5.5.0.tar.gz
"