1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00
aports/community/py3-google-api-python-client/APKBUILD

56 lines
1.5 KiB
Text

# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py3-google-api-python-client
_pkgname=google_api_python_client
pkgver=2.169.0
pkgrel=0
pkgdesc="Google API Client Library for Python"
url="https://github.com/googleapis/google-api-python-client"
arch="noarch"
license="Apache-2.0"
depends="
py3-google-api-core
py3-google-auth
py3-google-auth-httplib2
py3-httplib2
py3-oauth2client
py3-uritemplate
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-mock
py3-openssl
py3-parameterized
py3-pytest
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/g/google_api_python_-client/google_api_python_client-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-google-api-python-client" # Backwards compatibility
provides="py-google-api-python-client=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -k 'not test_client_options_universe_configured_with_mtls and not test_universe_env_var_configured_with_mtls'
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
506bf5fc576a0db4d9db1e4abffdc5fa78009a070a7254821393599e3f56c55b6219b16200ea7f776a0ceca8673aa58cd379f952078deaafdc3f72e0591d726f google_api_python_client-2.169.0.tar.gz
"