aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-google-auth/APKBUILD
blob: 019c7997285964c4d3cb1d04b04b5924c7cdda91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-google-auth
_pyname=google-auth
pkgver=1.19.2
pkgrel=0
pkgdesc="Google authentication library for Python."
url="https://google-auth.readthedocs.io/en/latest/"
arch="noarch"
license="Apache-2.0"
depends="
	python3
	py3-cachetools<5.0
	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-requests
	py3-responses
	py3-urllib3
	py3-cryptography
	"
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
	remove-unnecessary-dependencies.patch
	"

builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	python3 -m pytest
}
sha512sums="f520f889c0fb4514ca61b5e43ca893263e2f5048c5d2265dd8bfe9c102f0918611c40001589cb395a689f2294461c069105a09bf8e9607f2e7e9aef5e6794f7d  google-auth-1.19.2.tar.gz
8a8e00659b24c226e1533c869eab26e9fb3a75606073ddd29adc97f3fcb8ed0ce874a53936ba77125e464f5d69e230ebdda5b196533c7f0476c75aa16dc1aa0a  remove-unnecessary-dependencies.patch"