c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
89 lines
1.7 KiB
Nix
89 lines
1.7 KiB
Nix
{ lib
|
|
, backports-zoneinfo
|
|
, buildPythonPackage
|
|
, cached-property
|
|
, defusedxml
|
|
, dnspython
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, flake8
|
|
, isodate
|
|
, lxml
|
|
, oauthlib
|
|
, psutil
|
|
, pygments
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pytz
|
|
, pyyaml
|
|
, requests
|
|
, requests_ntlm
|
|
, requests-oauthlib
|
|
, requests-kerberos
|
|
, requests-mock
|
|
, tzdata
|
|
, tzlocal
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "exchangelib";
|
|
version = "5.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ecederstrand";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DaTe6MI3dfBswa0DcICtbjM44MeEhJpucFy0ME08Iv4=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "tests-timezones-2.patch";
|
|
url = "https://github.com/ecederstrand/exchangelib/commit/419eafcd9261bfd0617823ee437204d5556a8271.diff";
|
|
excludes = [ "tests/test_ewsdatetime.py" ];
|
|
hash = "sha256-dSp6NkNT5dHOg8XgDi8sR3t3hq46sNtPjUXva2YfFSU=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cached-property
|
|
defusedxml
|
|
dnspython
|
|
isodate
|
|
lxml
|
|
oauthlib
|
|
pygments
|
|
requests
|
|
requests_ntlm
|
|
requests-oauthlib
|
|
requests-kerberos
|
|
tzdata
|
|
tzlocal
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
backports-zoneinfo
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
flake8
|
|
psutil
|
|
python-dateutil
|
|
pytz
|
|
pyyaml
|
|
requests-mock
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"exchangelib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Client for Microsoft Exchange Web Services (EWS)";
|
|
homepage = "https://github.com/ecederstrand/exchangelib";
|
|
changelog = "https://github.com/ecederstrand/exchangelib/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ catern ];
|
|
};
|
|
}
|