2021-08-11 14:56:57 +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_oauthlib
|
|
|
|
, requests-kerberos
|
|
|
|
, requests-mock
|
|
|
|
, tzdata
|
|
|
|
, tzlocal
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "exchangelib";
|
2022-01-22 01:22:15 +00:00
|
|
|
version = "4.7.1";
|
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;
|
|
|
|
rev = "v${version}";
|
2022-01-22 01:22:15 +00:00
|
|
|
sha256 = "1kwb5ixlmxg0xxm4wms5r4kym220vbncr9afi9qc25g8npkbs860";
|
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
|
|
|
|
requests_oauthlib
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|