From 3818474fa4dc2a8502399c5d8d8df4a1a0e560f8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:15:35 +0100 Subject: [PATCH] python3Packages.google-auth: 2.36.0 -> 2.37.0 https://github.com/googleapis/google-auth-library-python/blob/v2.37.0/CHANGELOG.md --- .../python-modules/google-auth/default.nix | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/google-auth/default.nix b/pkgs/development/python-modules/google-auth/default.nix index 4813fd2f091e..095159884bf4 100644 --- a/pkgs/development/python-modules/google-auth/default.nix +++ b/pkgs/development/python-modules/google-auth/default.nix @@ -13,6 +13,7 @@ mock, oauth2client, pyasn1-modules, + pyjwt, pyopenssl, pytest-asyncio, pytest-localserver, @@ -27,7 +28,7 @@ buildPythonPackage rec { pname = "google-auth"; - version = "2.36.0"; + version = "2.37.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -35,12 +36,12 @@ buildPythonPackage rec { src = fetchPypi { pname = "google_auth"; inherit version; - hash = "sha256-VF6WGPLfC8u33LxFpUZIWxISYkcWl1oepa6BSc52mrE="; + hash = "sha256-AFRiOr8fnINJLGPT9H538KVEyqPUCy2Y4JmmEcLdXQA="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ cachetools pyasn1-modules rsa @@ -59,6 +60,10 @@ buildPythonPackage rec { cryptography pyopenssl ]; + pyjwt = [ + cryptography + pyjwt + ]; reauth = [ pyu2f ]; requests = [ requests ]; }; @@ -80,9 +85,7 @@ buildPythonPackage rec { pytestCheckHook responses ] - ++ optional-dependencies.aiohttp - ++ optional-dependencies.enterprise_cert - ++ optional-dependencies.reauth; + ++ lib.flatten (lib.attrValues optional-dependencies); pythonImportsCheck = [ "google.auth" @@ -94,14 +97,6 @@ buildPythonPackage rec { "--deselect=tests/transport/test__mtls_helper.py::TestDecryptPrivateKey::test_success" ]; - disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ - # Disable tests using pyOpenSSL as it does not build on M1 Macs - "tests/transport/test__mtls_helper.py" - "tests/transport/test_requests.py" - "tests/transport/test_urllib3.py" - "tests/transport/test__custom_tls_signer.py" - ]; - __darwinAllowLocalNetworking = true; meta = with lib; {