# Maintainer: Antoine Martin (ayakael) # Contributor: Antoine Martin (ayakael) _pyname=duo_client pkgname="py3-duo-client" pkgver=4.5.0 pkgrel=1 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=" ace30ae776696597e84c7922d31cd328fe942c92373b3ba90e4f3ed4a357e2dd327a6435dde5db33ed41e0f10263bdc67d110755b0e143fdfab029af15c204ee py3-duo-client-4.5.0.tar.gz "