pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mitmproxy: Add py-typing-extensions for <3.11 accordingly



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon Jan 1 21:18:34 2024 +0100
Changeset:	b5e113b12cdc78c4cd1a8c0200a03796b5cced95

Modified Files:
	mitmproxy/Makefile

Log Message:
mitmproxy: Add py-typing-extensions for <3.11 accordingly

Address TODO point on depending on py-typing-extensions on Python
3.10.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b5e113b12cdc78c4cd1a8c0200a03796b5cced95

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mitmproxy/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diffs:
diff --git a/mitmproxy/Makefile b/mitmproxy/Makefile
index 85f1c380b1..59f2f3a6ca 100644
--- a/mitmproxy/Makefile
+++ b/mitmproxy/Makefile
@@ -36,8 +36,11 @@ DEPENDS+=	${PYPKGPREFIX}-tornado>=6.2:../../www/py-tornado
 DEPENDS+=	${PYPKGPREFIX}-wsproto>=1.0:../../www/py-wsproto
 DEPENDS+=	${PYPKGPREFIX}-zstandard>=0.11:../../archivers/py-zstandard
 
-# TODO / XXX: only for Python 3.10!
-#DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.3:../../devel/py-typing-extensions
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYTHON_VERSION} < 311
+DEPENDS+=	${PYPKGPREFIX}-typing-extensions>=4.3:../../devel/py-typing-extensions
+.endif
 
 SUBST_CLASSES+=				pyprojecttomlversions
 SUBST_STAGE.pyprojecttomlversions=	pre-configure


Home | Main Index | Thread Index | Old Index