ayaports/user/py3-google-auth/APKBUILD

58 lines
1.2 KiB
Text

# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-google-auth
_pyname=google-auth
pkgver=2.15.0
pkgrel=1
pkgdesc="Google authentication library for Python."
url="https://google-auth.readthedocs.io/en/latest/"
arch="noarch"
license="Apache-2.0"
depends="
python3
py3-cachetools
py3-asn1-modules
py3-rsa
py3-setuptools
py3-six
"
checkdepends="
py3-flask
py3-freezegun
py3-mock
py3-oauth2client
py3-openssl
py3-pytest
py3-pytest-cov
py3-pytest-localserver
py3-pyu2f
py3-requests
py3-responses
py3-urllib3
py3-cryptography
py3-certifi
"
case "$CARCH" in
ppc64le) ;; # no py3-grpcio, -needs UnscaledCycleClock::Frequency()
*) checkdepends="$checkdepends py3-grpcio" ;; # to run full suite
esac
source="https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-$pkgver.tar.gz
"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
check() {
python3 -m pytest
}
sha512sums="
4a564503195e4a96ac2a89bb208c37e434185439533913285ca03a3627f28e641a99224ae285ced84050fdc6073e075b1ba288e9a9c18d3e6adf70509b5ee68b google-auth-2.15.0.tar.gz
"