aports/community/py3-google-api-core/APKBUILD
2023-04-20 11:15:13 +02:00

52 lines
1.2 KiB
Plaintext

# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-google-api-core
pkgver=2.11.0
pkgrel=1
pkgdesc="Google API client core library"
url="https://github.com/googleapis/python-api-core"
arch="noarch"
license="Apache-2.0"
depends="
py3-google-auth
py3-googleapis-common-protos
py3-protobuf
py3-requests
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-grpcio
py3-mock
py3-pytest
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/g/google-api-core/google-api-core-$pkgver.tar.gz"
builddir="$srcdir/google-api-core-$pkgver"
options="!check" # missing some "proto" dep
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="
97c8cb1279d355f19616be51db57e37a35befdd98ba52b30ec874ed2f7a4531cd0f495cd84e806e1583d634f986ff12ee87bca42f2b13e5e2c4f911c8ddd085f google-api-core-2.11.0.tar.gz
"