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