e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
42 lines
1.2 KiB
Nix
42 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pyjwt
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msal";
|
|
version = "1.25.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-9EMp/bWfTwRMd5Fko0R0uKRK2eSUCvvEw6Oiu+kDJNk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|