git: ebe7f79312f6 - main - security/py-google-auth: Allow build with py-cachetools 5.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 23 Jan 2022 19:28:39 UTC
The branch main has been updated by sunpoet:

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

commit ebe7f79312f6e36fb6ee9defc4dcadfebfba23c6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-23 18:20:31 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-23 18:51:28 +0000

    security/py-google-auth: Allow build with py-cachetools 5.0.0
    
    - Bump PORTREVISION for package change
---
 security/py-google-auth/Makefile             |  5 +++--
 security/py-google-auth/files/patch-setup.py | 11 +++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/security/py-google-auth/Makefile b/security/py-google-auth/Makefile
index 7a16281423d1..2f4a2a1e6c22 100644
--- a/security/py-google-auth/Makefile
+++ b/security/py-google-auth/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	google-auth
 PORTVERSION=	2.3.3
+PORTREVISION=	1
 CATEGORIES=	security python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,12 +13,12 @@ COMMENT=	Google Authentication Library
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cachetools>=2.0.0<5.0:devel/py-cachetools@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cachetools>=2.0.0<5.1:devel/py-cachetools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyasn1-modules>=0.2.1:devel/py-pyasn1-modules@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}rsa>=3.1.4<5:security/py-rsa@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six@${PY_FLAVOR}
 
-USES=		python:3.6+
+USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
diff --git a/security/py-google-auth/files/patch-setup.py b/security/py-google-auth/files/patch-setup.py
new file mode 100644
index 000000000000..61142388b3f1
--- /dev/null
+++ b/security/py-google-auth/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-11-01 20:33:09 UTC
++++ setup.py
+@@ -20,7 +20,7 @@ from setuptools import setup
+ 
+ 
+ DEPENDENCIES = (
+-    "cachetools>=2.0.0,<5.0",
++    "cachetools>=2.0.0,<5.1",
+     "pyasn1-modules>=0.2.1",
+     # rsa==4.5 is the last version to support 2.7
+     # https://github.com/sybrenstuvel/python-rsa/issues/152#issuecomment-643470233