Date: Friday, September 9, 2022 @ 18:04:51 Author: felixonmars Revision: 1297330
upgpkg: python-google-auth 2.0.0-1 Modified: python-google-auth/trunk/PKGBUILD ----------+ PKGBUILD | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-09-09 18:03:26 UTC (rev 1297329) +++ PKGBUILD 2022-09-09 18:04:51 UTC (rev 1297330) @@ -1,29 +1,22 @@ # Maintainer: Felix Yan <[email protected]> pkgname=python-google-auth -pkgver=1.35.0 +pkgver=2.0.0 pkgrel=1 pkgdesc="Google Authentication Library" url="https://github.com/GoogleCloudPlatform/google-auth-library-python" license=('Apache') arch=('any') -depends=('ca-certificates' 'python-pyasn1-modules' 'python-rsa' 'python-setuptools' - 'python-cachetools') +depends=('python-cachetools' 'python-certifi' 'python-pyasn1-modules' 'python-rsa' + 'python-setuptools') checkdepends=('python-pytest' 'python-mock' 'python-requests' 'python-flask' 'python-oauth2client' 'python-pytest-localserver' 'python-cryptography' 'python-freezegun' 'python-responses' 'python-pyopenssl' 'python-pyu2f') -source=("https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver/$pkgname-$pkgver.tar.gz" - $pkgname-cachetools-5.patch::https://github.com/googleapis/google-auth-library-python/commit/1eae37db7f6fceb32d6ef0041962ce1755d2116c.patch) -sha512sums=('6f849f390187411ab108e60c25e1ba33dd02520e9fbe6327e31eb78f1bc3c2ab262cb0ae6558ce07c21a6e0b11f695afc3e7bb9161df526f6c6f237c447e921e' - 'f51c25c7168ebc89eef985ab3f8898844c7c51128075d7d35a6cb8fecaedd1142316921a9473531cfe2b02d3a3845e2d96812367b6eb51c166d709a7f2bfe6ae') +source=("https://github.com/GoogleCloudPlatform/google-auth-library-python/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('0066d5b054c6c1a9608eaf323173e7729cd7e7ef3664495ab29472e8724d6ba7635a262f5e7ebaf6e262ac4be8383ddcb0d2a63149a6fea0187b6f9eecd2d038') prepare() { - # Use system cert - sed -i -e 's|certifi.where()|"/etc/ssl/certs/ca-certificates.crt"|' \ - -e 's|if certifi is not None:|if True:|' \ - -e 's|import certifi|pass|' \ - google-auth-library-python-$pkgver/google/auth/transport/{urllib3,requests}.py - patch -d google-auth-library-python-$pkgver -p1 < $pkgname-cachetools-5.patch + sed -i 's|cachetools>=2.0.0,<5.0|cachetools>=2.0.0|' google-auth-library-python-$pkgver/setup.py sed -i 's|utils.int_from_bytes|int.from_bytes|' google-auth-library-python-$pkgver/google/auth/crypt/es256.py } @@ -33,10 +26,8 @@ } check() { - # Skip the without_certifi tests because we always have the system ca bundle - cd google-auth-library-python-$pkgver - python -m pytest tests --deselect tests/transport/test_urllib3.py::test__make_default_http_without_certifi + python -m pytest tests } package() {
