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