diff --git a/pkgs/development/python-modules/msal-extensions/default.nix b/pkgs/development/python-modules/msal-extensions/default.nix index cedd3f2a1c38..5ee21cb824a9 100644 --- a/pkgs/development/python-modules/msal-extensions/default.nix +++ b/pkgs/development/python-modules/msal-extensions/default.nix @@ -5,6 +5,7 @@ msal, portalocker, setuptools, + stdenv, pythonOlder, pytestCheckHook, }: @@ -34,12 +35,18 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # `from gi.repository import Secret` fails to find libsecret - "test_token_cache_roundtrip_with_persistence_builder" - "test_libsecret_persistence" - "test_nonexistent_libsecret_persistence" - ]; + disabledTests = + [ + # `from gi.repository import Secret` fails to find libsecret + "test_token_cache_roundtrip_with_persistence_builder" + "test_libsecret_persistence" + "test_nonexistent_libsecret_persistence" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # msal_extensions.osx.KeychainError + "test_keychain_roundtrip" + "test_keychain_persistence" + ]; pythonImportsCheck = [ "msal_extensions" ];