2022-01-26 04:04:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpretty
|
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
2024-05-15 15:35:15 +00:00
|
|
|
, setuptools
|
2022-01-26 04:04:25 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adal";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.2.7";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
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-10-21 18:38:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i '/cryptography/d' setup.py
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-01-26 04:04:25 +00:00
|
|
|
pyjwt
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-26 04:04:25 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|