Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
msal,
portalocker,
setuptools,
stdenv,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "msal-extensions";
version = "1.3.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "AzureAD";
repo = "microsoft-authentication-extensions-for-python";
tag = version;
hash = "sha256-LRopszB8+8N9EajSmZvz0MTomp/qWZ5O3q00AHimZbY=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "portalocker" ];
dependencies = [
msal
portalocker
];
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"
# network access
"test_token_cache_roundtrip_with_file_persistence"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# msal_extensions.osx.KeychainError
"test_keychain_roundtrip"
"test_keychain_persistence"
];
pythonImportsCheck = [ "msal_extensions" ];
meta = with lib; {
description = "Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
changelog = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}