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

37 lines
1.1 KiB
Nix
Raw Normal View History

2019-12-28 09:04:20 +00:00
{ buildPythonPackage
, fetchPypi
, lib
# pythonPackages
, pyjwt
, requests
}:
buildPythonPackage rec {
pname = "msal";
2021-06-18 21:47:26 +00:00
version = "1.12.0";
2019-12-28 09:04:20 +00:00
src = fetchPypi {
inherit pname version;
2021-06-18 21:47:26 +00:00
sha256 = "5cc93f09523c703d4e00a901cf719ade4faf2c3d14961ba52060ae78d5b25327";
2019-12-28 09:04:20 +00:00
};
propagatedBuildInputs = [
pyjwt
requests
];
# 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;
2021-05-06 07:40:27 +00:00
pythonImportsCheck = [ "msal" ];
2019-12-28 09:04:20 +00:00
meta = with lib; {
description = "The Microsoft Authentication Library (MSAL) for Python library enables your app 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";
license = licenses.mit;
2021-05-06 07:40:27 +00:00
maintainers = with maintainers; [ kamadorueda ];
2019-12-28 09:04:20 +00:00
};
}