projects/aports·blob master · refs

55 lines · 1.5 KiB

1# Contributor: Keith Maxwell <[email protected]>
2# Maintainer: Roberto Oliveira <[email protected]>
3pkgname=py3-google-api-python-client
4_pkgname=google_api_python_client
5pkgver=2.169.0
6pkgrel=2
7pkgdesc="Google API Client Library for Python"
8url="https://github.com/googleapis/google-api-python-client"
9arch="noarch"
10license="Apache-2.0"
11depends="
12 py3-google-api-core
13 py3-google-auth
14 py3-google-auth-httplib2
15 py3-httplib2
16 py3-uritemplate
17 "
18makedepends="
19 py3-gpep517
20 py3-setuptools
21 py3-wheel
22 "
23checkdepends="
24 py3-mock
25 py3-openssl
26 py3-parameterized
27 py3-pytest
28 "
29subpackages="$pkgname-pyc"
30source="https://files.pythonhosted.org/packages/source/g/google_api_python_-client/google_api_python_client-$pkgver.tar.gz"
31builddir="$srcdir/$_pkgname-$pkgver"
32
33replaces="py-google-api-python-client" # Backwards compatibility
34provides="py-google-api-python-client=$pkgver-r$pkgrel" # Backwards compatibility
35
36build() {
37 gpep517 build-wheel \
38 --wheel-dir .dist \
39 --output-fd 3 3>&1 >&2
40}
41
42check() {
43 python3 -m venv --clear --without-pip --system-site-packages .testenv
44 .testenv/bin/python3 -m installer .dist/*.whl
45 .testenv/bin/python3 -m pytest -k 'not test_client_options_universe_configured_with_mtls and not test_universe_env_var_configured_with_mtls'
46}
47
48package() {
49 python3 -m installer -d "$pkgdir" \
50 .dist/*.whl
51}
52
53sha512sums="
54506bf5fc576a0db4d9db1e4abffdc5fa78009a070a7254821393599e3f56c55b6219b16200ea7f776a0ceca8673aa58cd379f952078deaafdc3f72e0591d726f google_api_python_client-2.169.0.tar.gz
55"