32 lines
1010 B
Bash
32 lines
1010 B
Bash
# Template file for 'python3-grpcio'
|
|
pkgname=python3-grpcio
|
|
version=1.56.0
|
|
revision=4
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-six python3-Cython0.29"
|
|
makedepends="python3-devel zlib-devel c-ares-devel re2-devel openssl-devel
|
|
abseil-cpp-devel"
|
|
depends="python3-six"
|
|
short_desc="HTTP/2-based gRPC framework for Python"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="Apache-2.0"
|
|
homepage="https://grpc.io"
|
|
distfiles="${PYPI_SITE}/g/grpcio/grpcio-${version}.tar.gz"
|
|
checksum=4c08ee21b3d10315b8dc26f6c13917b20ed574cdbed2d2d80c53d5508fdcc0f2
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
fi
|
|
|
|
export GRPC_PYTHON_BUILD_SYSTEM_ABSL=1
|
|
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
|
|
export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
|
|
export GRPC_PYTHON_BUILD_SYSTEM_RE2=1
|
|
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
|
|
|
|
post_extract() {
|
|
# abseil-cpp 2023xxxxxx requires at least c++ 17
|
|
vsed -e 's/c++14/c++17/g' -i setup.py
|
|
rm src/python/grpcio/grpc/_cython/cygrpc.cpp
|
|
}
|