aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Cochard <olivier@FreeBSD.org>2026-05-07 16:02:32 +0000
committerOlivier Cochard <olivier@FreeBSD.org>2026-05-07 16:02:32 +0000
commit31fc8837162d4f7ee323730c723bfc8fadff8702 (patch)
tree511b35d44c08c9b332781c9ac6aaa82be0483de2
parent4be354dd8d01a36a91302d103d4deac05cdc34fe (diff)
devel/py-grpc-interceptor: New port
Simplifies gRPC interceptors Sponsored by: Netflix
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-grpc-interceptor/Makefile22
-rw-r--r--devel/py-grpc-interceptor/distinfo3
-rw-r--r--devel/py-grpc-interceptor/pkg-descr7
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index b0b6f9a8d81c..430f9a8e6ef1 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5080,6 +5080,7 @@
SUBDIR += py-grimoirelab-toolkit
SUBDIR += py-grizzled
SUBDIR += py-grpc-google-iam-v1
+ SUBDIR += py-grpc-interceptor
SUBDIR += py-grpc-stubs
SUBDIR += py-grpcio
SUBDIR += py-grpcio-gcp
diff --git a/devel/py-grpc-interceptor/Makefile b/devel/py-grpc-interceptor/Makefile
new file mode 100644
index 000000000000..7cdf37105cd3
--- /dev/null
+++ b/devel/py-grpc-interceptor/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= grpc-interceptor
+PORTVERSION= 0.15.4
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= olivier@FreeBSD.org
+COMMENT= Simplifies gRPC interceptors
+WWW= https://github.com/d5h-foss/grpc-interceptor
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}grpcio>=1.49.1:devel/py-grpcio@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-grpc-interceptor/distinfo b/devel/py-grpc-interceptor/distinfo
new file mode 100644
index 000000000000..3cfa4d997edf
--- /dev/null
+++ b/devel/py-grpc-interceptor/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1778169454
+SHA256 (grpc-interceptor-0.15.4.tar.gz) = 1f45c0bcb58b6f332f37c637632247c9b02bc6af0fdceb7ba7ce8d2ebbfb0926
+SIZE (grpc-interceptor-0.15.4.tar.gz) = 19322
diff --git a/devel/py-grpc-interceptor/pkg-descr b/devel/py-grpc-interceptor/pkg-descr
new file mode 100644
index 000000000000..2ccf7296c35f
--- /dev/null
+++ b/devel/py-grpc-interceptor/pkg-descr
@@ -0,0 +1,7 @@
+Simplifies gRPC interceptors.
+
+Provides a simplified interface than gRPC API that's easier to learn and use,
+with separate base classes for synchronous/asynchronous client and server
+interceptors. It also includes an exception-to-status helper that lets
+server-side code raise high-level exceptions which are translated into gRPC
+status codes.