# Contributor: Keith Maxwell # Maintainer: Keith Maxwell pkgname=py3-google-api-core pkgver=2.11.0 pkgrel=0 pkgdesc="Google API client core library" url="https://github.com/googleapis/python-api-core" arch="noarch !ppc64le" # limited by py3-grpcio license="Apache-2.0" depends=" py3-google-auth py3-googleapis-common-protos py3-protobuf py3-requests python3 " makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-grpcio py3-mock py3-pytest " source="https://files.pythonhosted.org/packages/source/g/google-api-core/google-api-core-$pkgver.tar.gz" builddir="$srcdir/google-api-core-$pkgver" options="!check" # missing some "proto" dep 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 } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" 97c8cb1279d355f19616be51db57e37a35befdd98ba52b30ec874ed2f7a4531cd0f495cd84e806e1583d634f986ff12ee87bca42f2b13e5e2c4f911c8ddd085f google-api-core-2.11.0.tar.gz "