void-packages/srcpkgs/python3-grpcio/template

34 lines
993 B
Bash

# Template file for 'python3-grpcio'
pkgname=python3-grpcio
version=1.49.1
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools python3-six python3-Cython"
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=d4725fc9ec8e8822906ae26bb26f5546891aa7fbc3443de970cc556d43a5c99f
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
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() {
rm src/python/grpcio/grpc/_cython/cygrpc.cpp
}