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

55 lines
1.4 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=2.80.0
pkgrel=0
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-uritemplate
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
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"
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="
c51219a7a039cd9578a715b309a6c0f124f7332000ce58c3c17e9697eea66dac76c133cfa3a01160e70fcbd1d8c8a53e0569ed692d9138f4678333d9c60f6089 google-api-python-client-2.80.0.tar.gz
"