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:09:57 +0000
commitee1cad90ea2430c6148eed8c11e841a4360b5e03 (patch)
tree1838c8d4ce4cc3eb0cb4b90f014e31008c3a4437
parenta1d0c28e48390583f9c3532af3433a7a09f5e384 (diff)
downloadports-ee1cad90ea2430c6148eed8c11e841a4360b5e03.tar.gz
ports-ee1cad90ea2430c6148eed8c11e841a4360b5e03.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
-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>