aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-21 21:12:49 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-07-21 21:12:49 +0000
commit803921f2f1af88a723cee611c683f26c0a54097c (patch)
tree331f7f90cb680ea51d733ef05753b8511fa6fc77
parent75752cd50be8de2ff11026bf3a536bcad6245a8f (diff)
downloadports-803921f2f1af88a723cee611c683f26c0a54097c.tar.gz
ports-803921f2f1af88a723cee611c683f26c0a54097c.zip
devel/py-grpc-stubs: Add py-grpc-stubs 1.24.6
gRPC Typing Stubs for Python is a PEP-561-compliant stub-only package which provides type information of gRPC. WWW: https://github.com/shabbyrobe/grpc-stubs
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-grpc-stubs/Makefile23
-rw-r--r--devel/py-grpc-stubs/distinfo3
-rw-r--r--devel/py-grpc-stubs/pkg-descr4
4 files changed, 31 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 25bc13868910..5a05792b69b6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4510,6 +4510,7 @@
SUBDIR += py-greenlet
SUBDIR += py-grizzled
SUBDIR += py-grpc-google-iam-v1
+ SUBDIR += py-grpc-stubs
SUBDIR += py-grpcio
SUBDIR += py-grpcio-gcp
SUBDIR += py-grpcio-tools
diff --git a/devel/py-grpc-stubs/Makefile b/devel/py-grpc-stubs/Makefile
new file mode 100644
index 000000000000..c5b7ab7c640a
--- /dev/null
+++ b/devel/py-grpc-stubs/Makefile
@@ -0,0 +1,23 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= grpc-stubs
+PORTVERSION= 1.24.6
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Mypy stubs for gRPC
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}grpcio>=0:devel/py-grpcio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mypy>=0.730:devel/py-mypy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-grpc-stubs/distinfo b/devel/py-grpc-stubs/distinfo
new file mode 100644
index 000000000000..9c370feee497
--- /dev/null
+++ b/devel/py-grpc-stubs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1626891022
+SHA256 (grpc-stubs-1.24.6.tar.gz) = 98f307afcb180676ce3181262d01a7f1b0773b4c4c92724a761030ba2c44ff6b
+SIZE (grpc-stubs-1.24.6.tar.gz) = 8595
diff --git a/devel/py-grpc-stubs/pkg-descr b/devel/py-grpc-stubs/pkg-descr
new file mode 100644
index 000000000000..b161274c8036
--- /dev/null
+++ b/devel/py-grpc-stubs/pkg-descr
@@ -0,0 +1,4 @@
+gRPC Typing Stubs for Python is a PEP-561-compliant stub-only package which
+provides type information of gRPC.
+
+WWW: https://github.com/shabbyrobe/grpc-stubs