aports/community/py3-proto-plus/APKBUILD
2025-05-01 01:56:07 +00:00

44 lines
1 KiB
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-proto-plus
_pyname=proto_plus
pkgver=1.26.1
pkgrel=0
pkgdesc="Beautiful, idiomatic protocol buffers in Python"
url="https://googleapis.dev/python/proto-plus/latest/"
arch="noarch"
license="Apache-2.0"
depends="
python3
py3-protobuf
"
makedepends="
py3-gpep517
py3-setuptools
py3-wheel
"
checkdepends="
py3-googleapis-common-protos
py3-pytest
py3-tz
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/proto_plus/proto_plus-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$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 -v
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
}
sha512sums="
67a2e826a42e719901f1ce74cb07c6ae0b17f4690128646bd6d6ecec67775264ad18a10964c2fa7f0bf0622f9d0c4343ec009450b7d3fbd07b096283f7c07317 proto_plus-1.26.1.tar.gz
"