aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-grpcio/APKBUILD
blob: 4c849f07cc1f0770817ca66aae75751f187b991a (plain)
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
32
33
34
35
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-grpcio
pkgver=1.25.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 cython 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="7d9e126eafdfefe9b5c2eacf9c082b972115f231a55cff53386305f2df68037e2593eedc3f27fe0eaeb7fbe78b28f6b87607cdeccf59929b9a9b33bf74ab5c92  grpc-1.25.0.tar.gz"