2022-01-26 04:04:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpretty
|
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adal";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.2.7";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AzureAD";
|
|
|
|
repo = "azure-activedirectory-library-for-python";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-HE8/P0aohoZNeMdcQVKdz6M31FMrjsd7oVytiaD0idI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyjwt
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
httpretty
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: 'Mex [23 chars]tp error:...
|
|
|
|
"test_failed_request"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"adal"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-01-26 04:04:25 +00:00
|
|
|
description = "Python module to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/AzureAD/azure-activedirectory-library-for-python";
|
|
|
|
license = licenses.mit;
|
2021-12-21 02:18:32 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|