From 4d67c54ff5152ba4cc6d9547c685555f7514d6d6 Mon Sep 17 00:00:00 2001 From: Dirk Stolle Date: Sat, 2 Aug 2025 10:28:55 +0200 Subject: [PATCH] google-auth: add patch for cachetools 6.x compatibility See . --- mingw-w64-python-google-auth/PKGBUILD | 24 ++++++++++++++++--- ...060d521baf86c219d66a26631decb3b28e79.patch | 22 +++++++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 mingw-w64-python-google-auth/af18060d521baf86c219d66a26631decb3b28e79.patch diff --git a/mingw-w64-python-google-auth/PKGBUILD b/mingw-w64-python-google-auth/PKGBUILD index a81f35ce06..c3569b81f6 100644 --- a/mingw-w64-python-google-auth/PKGBUILD +++ b/mingw-w64-python-google-auth/PKGBUILD @@ -4,7 +4,7 @@ _realname=google-auth pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgver=2.40.3 -pkgrel=1 +pkgrel=2 pkgdesc='Google Authentication Library (mingw-w64)' arch=('any') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -35,8 +35,26 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-flask" makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-setuptools") -source=("https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz") -sha256sums=('500c3a29adedeb36ea9cf24b8d10858e152f2412e3ca37829b3fa18e33d63b77') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz" + af18060d521baf86c219d66a26631decb3b28e79.patch) +sha256sums=('500c3a29adedeb36ea9cf24b8d10858e152f2412e3ca37829b3fa18e33d63b77' + '33a4c06fa0e765e3639f4b037231b9d19dc1ebc973cfc6b6e52e9c3e101f97ab') + +# Helper macros to help make tasks easier # +apply_patch_with_msg() { + for _patch in "$@" + do + msg2 "Applying $_patch" + patch -Nbp1 -i "${srcdir}/$_patch" + done +} +# =========================================== # + +prepare() { + cd "${srcdir}"/"${_realname/-/_}-${pkgver}" + apply_patch_with_msg \ + af18060d521baf86c219d66a26631decb3b28e79.patch +} build() { cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" diff --git a/mingw-w64-python-google-auth/af18060d521baf86c219d66a26631decb3b28e79.patch b/mingw-w64-python-google-auth/af18060d521baf86c219d66a26631decb3b28e79.patch new file mode 100644 index 0000000000..2fd3dac661 --- /dev/null +++ b/mingw-w64-python-google-auth/af18060d521baf86c219d66a26631decb3b28e79.patch @@ -0,0 +1,22 @@ +From af18060d521baf86c219d66a26631decb3b28e79 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Yannick=20P=C3=89ROUX?= +Date: Tue, 15 Jul 2025 19:36:55 +0200 +Subject: [PATCH] feat: add support for cachetools 6.0 (#1773) + +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 3874354fd..20f79ce66 100644 +--- a/setup.py ++++ b/setup.py +@@ -20,7 +20,7 @@ + + + DEPENDENCIES = ( +- "cachetools>=2.0.0,<6.0", ++ "cachetools>=2.0.0,<7.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