aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2022-11-14 15:09:51 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2022-11-14 15:10:31 +0000
commit922f4a85e95bccf9e0524ab37bf8e694ae0919c4 (patch)
tree13dc81c8a9dcc1ae11229d1b19350157680d14e4
parentfde44c5e1af263c9289dbe2af849052d05020ffa (diff)
downloadports-922f4a85e95bccf9e0524ab37bf8e694ae0919c4.tar.gz
ports-922f4a85e95bccf9e0524ab37bf8e694ae0919c4.zip
net/py-trio: Add missing dependency
Add missing dependency (exceptiongroup), backported from python 3.11. PR: 267133 Reported by: parv.0zero9+freebsd@gmail.com (cherry picked from commit ee1cad90ea2430c6148eed8c11e841a4360b5e03)
-rw-r--r--net/py-trio/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/py-trio/Makefile b/net/py-trio/Makefile
index d25644936b4d..9f876308b10e 100644
--- a/net/py-trio/Makefile
+++ b/net/py-trio/Makefile
@@ -1,5 +1,6 @@
PORTNAME= trio
PORTVERSION= 0.22.0
+PORTREVISION= 1
CATEGORIES= net python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -33,7 +34,14 @@ USE_PYTHON= autoplist distutils
NO_ARCH= yes
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}exceptiongroup>=1.0.0rc9:devel/py-exceptiongroup@${PY_FLAVOR}
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}exceptiongroup>=1.0.0rc9:devel/py-exceptiongroup@${PY_FLAVOR}
+.endif
+
do-test:
@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>