python3Packages.google-auth: support urllib3 v2

This commit is contained in:
natsukium
2023-09-27 15:34:44 +02:00
committed by Martin Weinelt
parent a74ad6ccd7
commit 34c1b3b274
@@ -5,6 +5,7 @@
, buildPythonPackage
, cachetools
, cryptography
, fetchpatch
, fetchPypi
, flask
, freezegun
@@ -37,6 +38,18 @@ buildPythonPackage rec {
hash = "sha256-so6ASOV3J+fPDlvY5ydrISrvR2ZUoJURNUqoJ1O0XGY=";
};
patches = [
# Although the migration to urllib3-2.0.0 is incomplete,
# the discussion in the following PR has addressed the concerns.
# https://github.com/googleapis/google-auth-library-python/pull/1290
(fetchpatch {
name = "support-urllib3_2.patch";
url = "https://github.com/googleapis/google-auth-library-python/commit/9ed006d02d7c9de3e6898ee819648c2fd3367c1d.patch";
hash = "sha256-64g0GzZeyO8l/s1jqfsogr8pTOBbG9xfp/UeVZNA4q8=";
includes = [ "google/auth/transport/urllib3.py" ];
})
];
propagatedBuildInputs = [
cachetools
pyasn1-modules