Files
nixpkgs/pkgs/development/python-modules/msal-extensions/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ kamadorueda ];
};
}