2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
backports-zoneinfo,
|
|
|
|
buildPythonPackage,
|
|
|
|
cached-property,
|
|
|
|
defusedxml,
|
|
|
|
dnspython,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flake8,
|
|
|
|
isodate,
|
|
|
|
lxml,
|
|
|
|
oauthlib,
|
|
|
|
psutil,
|
|
|
|
pygments,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
requests-ntlm,
|
|
|
|
requests-gssapi,
|
|
|
|
requests-oauthlib,
|
|
|
|
requests-kerberos,
|
|
|
|
requests-mock,
|
|
|
|
setuptools,
|
|
|
|
tzdata,
|
|
|
|
tzlocal,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "exchangelib";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "5.4.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ecederstrand";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo = "exchangelib";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-GBfSdX9gFLx+CCV8DWHWtVpWi6zI3fg/3g/MiIvRoVM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-08-11 14:56:57 +00:00
|
|
|
cached-property
|
|
|
|
defusedxml
|
|
|
|
dnspython
|
|
|
|
isodate
|
|
|
|
lxml
|
|
|
|
oauthlib
|
|
|
|
pygments
|
|
|
|
requests
|
2024-01-25 14:12:00 +00:00
|
|
|
requests-ntlm
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2021-08-11 14:56:57 +00:00
|
|
|
requests-kerberos
|
|
|
|
tzdata
|
|
|
|
tzlocal
|
2024-04-21 15:54:59 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
complete = [
|
|
|
|
requests-gssapi
|
|
|
|
# requests-negotiate-sspi
|
|
|
|
];
|
|
|
|
kerberos = [ requests-gssapi ];
|
|
|
|
# sspi = [
|
|
|
|
# requests-negotiate-sspi
|
|
|
|
# ];
|
|
|
|
};
|
2021-08-11 14:56:57 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-11 14:56:57 +00:00
|
|
|
flake8
|
|
|
|
psutil
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
requests-mock
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "exchangelib" ];
|
2021-08-11 14:56:57 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Client for Microsoft Exchange Web Services (EWS)";
|
2021-08-11 14:56:57 +00:00
|
|
|
homepage = "https://github.com/ecederstrand/exchangelib";
|
2023-03-08 16:32:21 +00:00
|
|
|
changelog = "https://github.com/ecederstrand/exchangelib/blob/v${version}/CHANGELOG.md";
|
2021-08-11 14:56:57 +00:00
|
|
|
license = licenses.bsd2;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|