mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
|
|
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
|
|
pkgname=py3-googleapis-common-protos
|
|
pkgver=1.59.0
|
|
pkgrel=1
|
|
pkgdesc="Common protobufs used in Google APIs for Python"
|
|
url="https://pypi.org/project/googleapis-common-protos/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
python3
|
|
py3-protobuf
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-grpcio
|
|
py3-pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/g/googleapis-common-protos/googleapis-common-protos-$pkgver.tar.gz"
|
|
builddir="$srcdir/googleapis-common-protos-$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="
|
|
7699f818f30f2938a6c701b41e84cd0cefd652c6004169532461b5c435270ea42806271032ff5b3cc8cae04b9a8568795aa0786dc362f190fe3e1eeee0a0cda7 googleapis-common-protos-1.59.0.tar.gz
|
|
"
|