# Maintainer: Roberto Oliveira pkgname=py3-google-api-python-client _pkgname=google-api-python-client pkgver=1.7.11 pkgrel=0 pkgdesc="Google API Client Library for Python" options="!check" # Some tests fail url="https://github.com/google/google-api-python-client" arch="noarch" license="Apache-2.0" depends="py3-google-auth py3-google-auth-httplib2 py3-uritemplate py3-six py3-httplib2 py3-oauth2client" makedepends="py3-setuptools" checkdepends="py3-mock" source="https://files.pythonhosted.org/packages/source/g/$_pkgname/$_pkgname-$pkgver.tar.gz unittest2.patch " builddir="$srcdir/$_pkgname-$pkgver" replaces="py-google-api-python-client" # Backwards compatibility provides="py-google-api-python-client=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" # Fix permissions _site_packages=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") chmod -R a+r "$pkgdir$_site_packages" } sha512sums="6a3ef74c8bc518d7eee05bd73209e93931bfb2719b89f435fa3e0c260bf21adf174aa158f8a395bec38fcd69f542f6f55abd8d215d970cd600eb51a84589e5f8 google-api-python-client-1.7.11.tar.gz e47ecc9a4522520b8be00702e7ad1b358c6683fe4daf3b16446c2e96a3c42e698244bd7e54be7245b2cdd800e7326a2c1587643ca7ee60a1dec843b3f3c49cf5 unittest2.patch"