google-auth: add patch for cachetools 6.x compatibility

See <af18060d52>.
This commit is contained in:
Dirk Stolle 2025-08-02 10:28:55 +02:00
parent c1c16ef20c
commit 4d67c54ff5
2 changed files with 43 additions and 3 deletions

View File

@ -4,7 +4,7 @@ _realname=google-auth
pkgbase=mingw-w64-python-${_realname} pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=2.40.3 pkgver=2.40.3
pkgrel=1 pkgrel=2
pkgdesc='Google Authentication Library (mingw-w64)' pkgdesc='Google Authentication Library (mingw-w64)'
arch=('any') arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
@ -35,8 +35,26 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-flask"
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer" "${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools") "${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz") source=("https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz"
sha256sums=('500c3a29adedeb36ea9cf24b8d10858e152f2412e3ca37829b3fa18e33d63b77') 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() { build() {
cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"

View File

@ -0,0 +1,22 @@
From af18060d521baf86c219d66a26631decb3b28e79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yannick=20P=C3=89ROUX?= <yannick.peroux@gmail.com>
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