depot/third_party/nixpkgs/pkgs/development/python-modules/msal/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

45 lines
1.3 KiB
Nix

{
lib,
cryptography,
buildPythonPackage,
fetchPypi,
pyjwt,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "msal";
version = "1.28.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-1yu/4tXC8lVfS8YgW+RFDd/RKXZhDdmhapqw8Fxotk0=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
cryptography
pyjwt
requests
] ++ pyjwt.optional-dependencies.crypto;
# Tests assume Network Connectivity:
# https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73
doCheck = false;
pythonImportsCheck = [ "msal" ];
meta = with lib; {
description = "Library to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect";
homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python";
changelog = "https://github.com/AzureAD/microsoft-authentication-library-for-python/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}