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