32 lines
1010 B
Bash
32 lines
1010 B
Bash
# Template file for 'python3-grpcio'
|
|
pkgname=python3-grpcio
|
|
version=1.60.1
|
|
revision=1
|
|
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=dd1d3a8d1d2e50ad9b59e10aa7f07c7d1be2b367f3f2d33c5fade96ed5460962
|
|
|
|
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
|
|
}
|