1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/community/py3-google-api-core/APKBUILD
2025-05-01 01:56:07 +00:00

52 lines
1.2 KiB
Text

# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-google-api-core
pkgver=2.24.2
pkgrel=0
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-proto-plus
py3-protobuf
py3-requests
python3
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-grpcio
py3-mock
py3-pytest
py3-pytest-aiohttp
"
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"
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="
3205132729c68d0e2563a544d8da19af849b35f130190b97f8fb7a4ca859a941459f8b5c4aa46ddebbd810426ba15228b3f7dbb0ba3af47142c373354c969d15 google_api_core-2.24.2.tar.gz
"