summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/py-google-auth/Makefile29
-rw-r--r--security/py-google-auth/distinfo6
-rw-r--r--security/py-google-auth/files/patch-setup.py11
3 files changed, 33 insertions, 13 deletions
diff --git a/security/py-google-auth/Makefile b/security/py-google-auth/Makefile
index fd7228c62ddd..cc57e0118271 100644
--- a/security/py-google-auth/Makefile
+++ b/security/py-google-auth/Makefile
@@ -1,8 +1,9 @@
PORTNAME= google-auth
-PORTVERSION= 2.31.0
+PORTVERSION= 2.40.2
CATEGORIES= security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= google_auth-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Google Authentication Library
@@ -13,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cachetools>=2.0.0<6.0:devel/py-cachetools@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cachetools>=2.0.0: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}
@@ -22,15 +23,23 @@ USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
-OPTIONS_DEFINE= AIOHTTP REAUTH REQUESTS
-OPTIONS_DEFAULT=AIOHTTP REQUESTS
-AIOHTTP_DESC= Use aiohttp
-REAUTH_DESC= Reauth support
-REQUESTS_DESC= Requests support
-
-AIOHTTP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.6.2<4.0.0:www/py-aiohttp@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}requests>=2.20.0<3.0.0:www/py-requests@${PY_FLAVOR}
+OPTIONS_DEFINE= AIOHTTP CRYPTOGRAPHY_BASE PYJWT REAUTH REQUESTS URLLIB3
+OPTIONS_DEFAULT=AIOHTTP CRYPTOGRAPHY_BASE PYJWT REQUESTS
+AIOHTTP_DESC= aiohttp support
+AIOHTTP_IMPLIES= REQUESTS
+CRYPTOGRAPHY_BASE_DESC= Cryptography support
+PYJWT_DESC= JWT token support
+PYJWT_IMPLIES= CRYPTOGRAPHY_BASE
+REAUTH_DESC= Reauth support
+REQUESTS_DESC= Requests support
+URLLIB3_DESC= Urllib3 support
+
+AIOHTTP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.6.2<4.0.0:www/py-aiohttp@${PY_FLAVOR}
+CRYPTOGRAPHY_BASE_USE= PYTHON=cryptography
+PYJWT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyjwt>=2.0:www/py-pyjwt@${PY_FLAVOR}
REAUTH_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyu2f>=0.1.5:net/py-pyu2f@${PY_FLAVOR}
REQUESTS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.20.0<3.0.0:www/py-requests@${PY_FLAVOR}
+URLLIB3_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}urllib3>=0,1:net/py-urllib3@${PY_FLAVOR}
.include <bsd.port.mk>
diff --git a/security/py-google-auth/distinfo b/security/py-google-auth/distinfo
index 7d5e1c58ff2b..26f4aa600a45 100644
--- a/security/py-google-auth/distinfo
+++ b/security/py-google-auth/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1720022874
-SHA256 (google-auth-2.31.0.tar.gz) = 87805c36970047247c8afe614d4e3af8eceafc1ebba0c679fe75ddd1d575e871
-SIZE (google-auth-2.31.0.tar.gz) = 252986
+TIMESTAMP = 1748495849
+SHA256 (google_auth-2.40.2.tar.gz) = a33cde547a2134273226fa4b853883559947ebe9207521f7afc707efbf690f58
+SIZE (google_auth-2.40.2.tar.gz) = 280990
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..06b64628ef0c
--- /dev/null
+++ b/security/py-google-auth/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2025-05-21 18:00:57 UTC
++++ setup.py
+@@ -20,7 +20,7 @@ DEPENDENCIES = (
+
+
+ DEPENDENCIES = (
+- "cachetools>=2.0.0,<6.0",
++ "cachetools>=2.0.0",
+ "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