# Template file for 'python3-grpcio-tools' pkgname=python3-grpcio-tools version=1.38.0 revision=1 wrksrc="${pkgname#*-}-${version}" build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel" depends="python3-protobuf python3-grpcio" checkdepends="python3-pytest $depends" short_desc="Protobuf code generator for gRPC" maintainer="Andrew J. Hesford " license="Apache-2.0" homepage="https://grpc.io" distfiles="${PYPI_SITE}/g/grpcio-tools/grpcio-tools-${version}.tar.gz" checksum=c609678cf6faf4b467259757f848de4fbc7baca3c1e3f7b0e55c701c50fd94ae if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then makedepends+=" libatomic-devel" fi post_patch() { if [ "${CROSS_BUILD}" ]; then vsed -i setup.py -e "s@['\"]cc['\"]@'${CC}'@g" fi } 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 }