git: b120a15fb70e - main - net-p2p/py-transmission-rpc: Allow build with py-typing-extensions 4.0.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 25 Jan 2022 19:56:50 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b120a15fb70ee9eea782409e6d3a4e789e258828

commit b120a15fb70ee9eea782409e6d3a4e789e258828
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-25 19:25:32 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-25 19:51:16 +0000

    net-p2p/py-transmission-rpc: Allow build with py-typing-extensions 4.0.1
    
    Reference:      https://github.com/Trim21/transmission-rpc/commit/af38c4faf685cda70ef6643c018a1408318ecbf8
---
 net-p2p/py-transmission-rpc/Makefile             |  2 +-
 net-p2p/py-transmission-rpc/files/patch-setup.py | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/net-p2p/py-transmission-rpc/Makefile b/net-p2p/py-transmission-rpc/Makefile
index 7d4921f826cd..44991223629f 100644
--- a/net-p2p/py-transmission-rpc/Makefile
+++ b/net-p2p/py-transmission-rpc/Makefile
@@ -10,7 +10,7 @@ COMMENT=	Python module for Transmission bittorent client RPC protocol
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.2<4.0.0.0:devel/py-typing-extensions@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.2<4.0.2.0:devel/py-typing-extensions@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=2.23.0<3.0.0:www/py-requests@${PY_FLAVOR}
 
 USES=		python:3.6+
diff --git a/net-p2p/py-transmission-rpc/files/patch-setup.py b/net-p2p/py-transmission-rpc/files/patch-setup.py
new file mode 100644
index 000000000000..dbd71436462f
--- /dev/null
+++ b/net-p2p/py-transmission-rpc/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-09-29 06:26:44 UTC
++++ setup.py
+@@ -8,7 +8,7 @@ package_data = \
+ {'': ['*']}
+ 
+ install_requires = \
+-['requests>=2.23.0,<3.0.0', 'typing_extensions>=3.7.4.2,<4.0.0.0']
++['requests>=2.23.0,<3.0.0', 'typing_extensions>=3.7.4.2,<4.0.2.0']
+ 
+ extras_require = \
+ {'docs': ['sphinx==4.2.0', 'sphinx-rtd-theme==1.0.0']}