diff --git a/pkgs/development/python-modules/google-auth/default.nix b/pkgs/development/python-modules/google-auth/default.nix index 3882f3571e4df..d228e40e1a003 100644 --- a/pkgs/development/python-modules/google-auth/default.nix +++ b/pkgs/development/python-modules/google-auth/default.nix @@ -4,6 +4,7 @@ , fetchPypi , pytestCheckHook , cachetools +, cryptography , flask , freezegun , mock @@ -32,6 +33,7 @@ buildPythonPackage rec { ]; checkInputs = [ + cryptography flask freezegun mock @@ -46,21 +48,11 @@ buildPythonPackage rec { "google.oauth2" ]; - disabledTests = lib.optionals stdenv.isDarwin [ - "test_request_with_timeout_success" - "test_request_with_timeout_failure" - "test_request_headers" - "test_request_error" - "test_request_basic" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # E MemoryError: Cannot allocate write+execute memory for ffi.callback(). - # You might be running on a system that prevents this. - # For more information, see https://cffi.readthedocs.io/en/latest/using.html#callbacks - "test_configure_mtls_channel_with_callback" - "test_configure_mtls_channel_with_metadata" - "TestDecryptPrivateKey" - "TestMakeMutualTlsHttp" - "TestMutualTlsAdapter" + disabledTestPaths = [ + # Disable tests related to pyopenssl + "tests/transport/test__mtls_helper.py" + "tests/transport/test_requests.py" + "tests/transport/test_urllib3.py" ]; meta = with lib; {