24 lines
798 B
Bash
24 lines
798 B
Bash
# Template file for 'python3-grpcio-tools'
|
|
pkgname=python3-grpcio-tools
|
|
version=1.49.1
|
|
revision=3
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-Cython"
|
|
makedepends="python3-devel"
|
|
depends="python3-protobuf python3-grpcio"
|
|
checkdepends="python3-pytest $depends"
|
|
short_desc="Protobuf code generator for gRPC"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://grpc.io"
|
|
distfiles="${PYPI_SITE}/g/grpcio-tools/grpcio-tools-${version}.tar.gz"
|
|
checksum=84cc64e5b46bad43d5d7bd2fd772b656eba0366961187a847e908e2cb735db91
|
|
|
|
export GRPC_PYTHON_BUILD_WITH_CYTHON=1
|
|
|
|
pre_check() {
|
|
# Subprocesses fail to find the compiled extension when only
|
|
# PYTHONPATH is set, so copy the extension into to source tree
|
|
cp -f build/lib*/grpc_tools/*.so grpc_tools
|
|
}
|