51 lines
1 KiB
Text
51 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.0.1
|
||
|
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="
|
||
|
0eeb4f5ce4b079b545235fe5175efab9256dc46252c24546b0beb1152849af797a6a8c3cbaa08103a5f21c4084916eaa74ac1ca2c0f7643a3b14ed921b39ac35 py3-duo-client-5.0.1.tar.gz
|
||
|
"
|