testing/py3-duo-client: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:55:07 -04:00
parent 8c91a05e4a
commit ab424f26ff
2 changed files with 50 additions and 32 deletions

View file

@ -0,0 +1,50 @@
# 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
"

View file

@ -1,32 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=duo_client
pkgname=py3-duo-client
pkgver=4.7.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"
checkdepends="py3-pytest py3-nose2 py3-flake8 py3-mock py3-tz py3-freezegun"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$srcdir" pytest || true
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
6d73bff172b8d39a6a65ccfce59c1e287fa75bf11acdc03900e29867ae72d62565607686a5a6215e8bc6ab3ec845579538e2e1c8edeb3319d105176c0bc0db3c py3-duo-client-4.7.0.tar.gz
"