-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
31 lines (28 loc) · 1010 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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
}