# Contributor: Keith Maxwell # Maintainer: Keith Maxwell pkgname=py3-grpcio pkgver=1.23.0 pkgrel=0 pkgdesc="gRPC Python HTTP/2-based RPC framework" url="https://grpc.io" arch="all" license="Apache-2.0" makedepends="python3-dev py3-setuptools py3-six cython3 zlib-dev openssl-dev c-ares-dev" options="!check" # tests depend upon bazel source="grpc-$pkgver.tar.gz::https://github.com/grpc/grpc/archive/v$pkgver.tar.gz" builddir="$srcdir/grpc-$pkgver" _set_environment_variables() { export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1 export GRPC_PYTHON_BUILD_SYSTEM_CARES=1 export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 export GRPC_PYTHON_BUILD_CYTHON=1 } build() { _set_environment_variables python3 setup.py build } package() { _set_environment_variables python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="4770651bd73b71735152155327c44d59125442b405157ffea8fb80b6f16406dd388474394e44ef620e2a777018121988a3a7a552a42141650d7cac263ab499a0 grpc-1.23.0.tar.gz"