1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
59 lines
1.5 KiB
Nix
59 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
msal,
|
|
portalocker,
|
|
setuptools,
|
|
stdenv,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msal-extensions";
|
|
version = "1.3.1";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|