2021-08-11 14:56:57 +00:00
|
|
|
{ lib
|
|
|
|
, backports-zoneinfo
|
|
|
|
, buildPythonPackage
|
|
|
|
, cached-property
|
|
|
|
, defusedxml
|
|
|
|
, dnspython
|
|
|
|
, fetchFromGitHub
|
2022-09-09 14:08:57 +00:00
|
|
|
, fetchpatch
|
2021-08-11 14:56:57 +00:00
|
|
|
, flake8
|
|
|
|
, isodate
|
|
|
|
, lxml
|
|
|
|
, oauthlib
|
|
|
|
, psutil
|
|
|
|
, pygments
|
|
|
|
, python-dateutil
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, pyyaml
|
|
|
|
, 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
|
|
|
|
, requests-mock
|
|
|
|
, tzdata
|
|
|
|
, tzlocal
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "exchangelib";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "5.1.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ecederstrand";
|
|
|
|
repo = pname;
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-WKQgfmEbil55WO3tWVq4n9wiJNw0Op/jbI7xt5vtKpA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
patches = [
|
2022-12-17 10:02:37 +00:00
|
|
|
(fetchpatch {
|
|
|
|
name = "tests-timezones-2.patch";
|
|
|
|
url = "https://github.com/ecederstrand/exchangelib/commit/419eafcd9261bfd0617823ee437204d5556a8271.diff";
|
|
|
|
excludes = [ "tests/test_ewsdatetime.py" ];
|
|
|
|
hash = "sha256-dSp6NkNT5dHOg8XgDi8sR3t3hq46sNtPjUXva2YfFSU=";
|
|
|
|
})
|
2022-09-09 14:08:57 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
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
|
2021-05-20 23:08:51 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
backports-zoneinfo
|
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
|
|
|
|
2021-12-06 16:07:01 +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 ];
|
|
|
|
};
|
|
|
|
}
|