From 631cbf11b6594c79aaa85f97d4cdc27f4d65a66b Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Thu, 28 Jul 2022 11:16:44 +0200 Subject: devel/py-click: add missing dependency for python < 3.10 - see https://docs.python.org/3/library/importlib.metadata.html PR: 264043 Approved: robak (maintainer timeout) --- devel/py-click/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/devel/py-click/Makefile b/devel/py-click/Makefile index 5ca03570b372..b43d98ef4ed4 100644 --- a/devel/py-click/Makefile +++ b/devel/py-click/Makefile @@ -1,5 +1,6 @@ PORTNAME= click PORTVERSION= 8.0.3 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -20,4 +21,10 @@ NO_ARCH= yes do-test: @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -p no:warnings -.include +.include + +.if ${PYTHON_REL} < 31000 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=3.6.0:devel/py-importlib-metadata@${PY_FLAVOR} +.endif + +.include -- cgit v1.2.3