aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2020-04-25 16:39:21 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-05-06 18:41:09 +0000
commita44c5c2ca619e508e5245e0739f19779d5a6259d (patch)
tree88955dd01e63c1d77c02fb2c794d41f06253cf60 /community
parent6afa9e2ce0c20b0b9d5894e188553145f5b00c09 (diff)
downloadaports-a44c5c2ca619e508e5245e0739f19779d5a6259d.tar.bz2
aports-a44c5c2ca619e508e5245e0739f19779d5a6259d.tar.xz
community/py3-grpcio: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/py3-grpcio/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/community/py3-grpcio/APKBUILD b/community/py3-grpcio/APKBUILD
new file mode 100644
index 0000000000..281522b0a6
--- /dev/null
+++ b/community/py3-grpcio/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
+# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
+pkgname=py3-grpcio
+pkgver=1.28.1
+pkgrel=0
+pkgdesc="gRPC Python HTTP/2-based RPC framework"
+url="https://grpc.io"
+arch="all !ppc64le" # no ppc64le -needs UnscaledCycleClock::Frequency()
+license="Apache-2.0"
+makedepends="python3-dev py3-setuptools py3-six cython zlib-dev openssl-dev
+ c-ares-dev linux-headers"
+options="!check" # tests depend upon bazel
+_abseil_cpp_rev=b832dce8489ef7b6231384909fd9b68d5a5ff2b7
+source="grpc-$pkgver.tar.gz::https://github.com/grpc/grpc/archive/v$pkgver.tar.gz
+ abseil-cpp-$_abseil_cpp_rev.tar.gz::https://github.com/abseil/abseil-cpp/archive/$_abseil_cpp_rev.tar.gz
+ "
+
+builddir="$srcdir/grpc-$pkgver"
+
+unpack() {
+ default_unpack
+
+ # the archive is missing git submodules
+ rmdir "$builddir/third_party/abseil-cpp"
+ ln -sn "$srcdir/abseil-cpp-$_abseil_cpp_rev/" "$builddir/third_party/abseil-cpp"
+}
+
+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() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="5cc4993470e2df21447d032ddeb65ab4175bb8acad5a06fdd22564068b80a5be255ef0e44d36732642d39dc3eaec02a93d2aaf6e369ad5dc43ff99b5023f357b grpc-1.28.1.tar.gz
+1709f93c5f6bda7aefe7e8a19c86e93e00b3b06600f38ccb866c997221fe0bd44e903208cc1677ed3ec5e3efe9f69c550b03bb6b9edc307d9ccc38290bbae627 abseil-cpp-b832dce8489ef7b6231384909fd9b68d5a5ff2b7.tar.gz"