# Contributor: Keith Maxwell # Maintainer: Roberto Oliveira pkgname=py3-google-api-python-client _pkgname=google-api-python-client pkgver=2.96.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 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 94b59d38df431b1624192946f84229f100870c44eaa304f740dc1ff8973bf54f9c1bf59315aa826f122ec4b46c21507d4f2c5f691a18804e57d81379848346e8 google-api-python-client-2.96.0.tar.gz "