56 lines
1.5 KiB
Plaintext

# 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.65.0
pkgrel=1
pkgdesc="Google API Client Library for Python"
url="https://github.com/googleapis/google-api-python-client"
arch="noarch !ppc64le" # limited by py3-grpcio
license="Apache-2.0"
depends="
py3-google-api-core
py3-google-auth
py3-google-auth-httplib2
py3-httplib2
py3-oauth2client
py3-six
py3-uritemplate
"
makedepends="py3-setuptools"
checkdepends="
py3-mock
py3-openssl
py3-parameterized
py3-pytest
"
source="https://files.pythonhosted.org/packages/source/g/google-api-python-client/google-api-python-client-$pkgver.tar.gz
py311.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 -m pytest tests
}
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="
ba32bf0108931e487d8930c1ea8ab7c7e184760aa3e00b411727322819fc48a11fe4070d05690bd0f5b159c371cd24383c736608880c4c4c3aa26755f8628d7f google-api-python-client-2.65.0.tar.gz
d3851932e07b411f9bd279516549224a0d4574bb5f3f798bc0de1afc2dcfbbe0bc3552d6151cf92b06830b9798e99753d6ab3eff87ba3206e733844fedd5659b py311.patch
"