git: 880c0dcf1f01 - main - www/py-mwoauth: Switch to newer version of pyjwt

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Wed, 12 Jan 2022 21:13:28 UTC
The branch main has been updated by kai:

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

commit 880c0dcf1f01f11a9553ad56a68a7350ba1394b1
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-01-12 21:11:16 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-01-12 21:12:48 +0000

    www/py-mwoauth: Switch to newer version of pyjwt
    
    * Resolve conflicting RUN_DEPENDS after 5cc6bfaeb269 as well.
    
    * Bump PORTREVISION due changed dependencies.
    
    Approved by:    yuri (maintainer, via D33797)
---
 www/py-mwoauth/Makefile             |  4 ++--
 www/py-mwoauth/files/patch-setup.py | 17 +++++++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/www/py-mwoauth/Makefile b/www/py-mwoauth/Makefile
index 5f8dc2aada91..525a65524053 100644
--- a/www/py-mwoauth/Makefile
+++ b/www/py-mwoauth/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mwoauth
 DISTVERSION=	0.3.7
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,7 +12,7 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}oauthlib>0:security/py-oauthlib@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pyjwt1>0:www/py-pyjwt1@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyjwt>=1.0.1:www/py-pyjwt@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests-oauthlib>0:www/py-requests-oauthlib@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
diff --git a/www/py-mwoauth/files/patch-setup.py b/www/py-mwoauth/files/patch-setup.py
new file mode 100644
index 000000000000..df153e68fd5f
--- /dev/null
+++ b/www/py-mwoauth/files/patch-setup.py
@@ -0,0 +1,17 @@
+Relax version requirements for www/py-pyjwt
+
+Obtained from:
+
+https://github.com/mediawiki-utilities/python-mwoauth/commit/4cff1c2165d74010b538c8f061e7488d34417bcb
+
+--- setup.py.orig	2022-01-09 13:39:26 UTC
++++ setup.py
+@@ -22,7 +22,7 @@ setup(
+     packages=find_packages(),
+     long_description=read('README.rst'),
+     install_requires=[
+-        'PyJWT>=1.0.1,<2.0.0',
++        'PyJWT>=1.0.1',
+         'oauthlib',
+         'requests',
+         'requests-oauthlib',