1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 20:55:19 +03:00
aports/community/py3-google-api-python-client/APKBUILD

43 lines
1.8 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=1.8.3
pkgrel=0
pkgdesc="Google API Client Library for Python"
url="https://github.com/google/google-api-python-client"
arch="noarch !ppc64le" # limited by py3-grpcio
license="Apache-2.0"
depends="py3-google-auth py3-google-auth-httplib2 py3-uritemplate py3-six py3-httplib2
py3-oauth2client py3-google-api-core"
makedepends="py3-setuptools"
checkdepends="py3-google-auth py3-google-auth-httplib2 py3-openssl py3-pytest py3-mock"
source="https://files.pythonhosted.org/packages/source/g/google-api-python-client/google-api-python-client-$pkgver.tar.gz
https://patch-diff.githubusercontent.com/raw/googleapis/google-api-python-client/pull/900.patch
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 -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="4352fd2b25c079418af509f806f09620df7a6630c015de21a5fa05a8c8bfba342d1ac849da5b87de6b04ae6a842c972f86616fc3f133611697f48406beaaee1d google-api-python-client-1.8.3.tar.gz
ee976200185b8af4cf3ad989f82a7410f0cf804fa5e60f82b645a62ccb09df4398478ad870eb4eaada058d5d8295d452c9d403df393de458bb2f61b8cc8b2177 900.patch
e47ecc9a4522520b8be00702e7ad1b358c6683fe4daf3b16446c2e96a3c42e698244bd7e54be7245b2cdd800e7326a2c1587643ca7ee60a1dec843b3f3c49cf5 unittest2.patch"