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
|
|
|
|
, 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";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "4.7.6";
|
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}";
|
2022-08-21 13:32:41 +00:00
|
|
|
hash = "sha256-Oarmdc2PuE4kQ/qUqQhuzdTpIrrMFCK72CrVmoSH1DI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "tests-timezones.patch";
|
|
|
|
url = "https://github.com/ecederstrand/exchangelib/commit/d5d386f54adec8ab02f871332b89e1176c214ba2.diff";
|
|
|
|
hash = "sha256-E3Ys6IDJ/yMsvi+1GKbwckkhbNrc9JLM/+GrPtUz+mY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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";
|
|
|
|
license = licenses.bsd2;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|