nixpkgs/pkgs/development/python-modules/msal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2019-12-28 09:04:20 +00:00
, fetchPypi
, pyjwt
, pythonOlder
2019-12-28 09:04:20 +00:00
, requests
}:
buildPythonPackage rec {
pname = "msal";
version = "1.20.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2019-12-28 09:04:20 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-eDRM1MkdYTSlk7Xj5FVB5mbje3R/+KYxbDZo3R5qtrI=";
2019-12-28 09:04:20 +00:00
};
propagatedBuildInputs = [
pyjwt
requests
]
++ pyjwt.optional-dependencies.crypto;
2019-12-28 09:04:20 +00:00
# Tests assume Network Connectivity:
2021-05-06 07:40:27 +00:00
# https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73
2019-12-28 09:04:20 +00:00
doCheck = false;
pythonImportsCheck = [
"msal"
];
2021-05-06 07:40:27 +00:00
2019-12-28 09:04:20 +00:00
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";
2019-12-28 09:04:20 +00:00
homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python";
license = licenses.mit;
2021-05-06 07:40:27 +00:00
maintainers = with maintainers; [ kamadorueda ];
2019-12-28 09:04:20 +00:00
};
}