at master 1.3 kB view raw
1{ 2 lib, 3 cryptography, 4 buildPythonPackage, 5 fetchPypi, 6 pyjwt, 7 pythonOlder, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "msal"; 14 version = "1.33.0"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-g2rYD6o+JafXEBXJkM5h9wSocyix5zvLsGI6GMvxdRA="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 cryptography 28 pyjwt 29 requests 30 ] 31 ++ pyjwt.optional-dependencies.crypto; 32 33 # Tests assume Network Connectivity: 34 # https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73 35 doCheck = false; 36 37 pythonImportsCheck = [ "msal" ]; 38 39 meta = with lib; { 40 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"; 41 homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python"; 42 changelog = "https://github.com/AzureAD/microsoft-authentication-library-for-python/releases/tag/${version}"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ kamadorueda ]; 45 }; 46}