91498b491a
Diff: https://github.com/ecederstrand/exchangelib/compare/refs/tags/v5.0.3...v5.1.0 Changelog: https://github.com/ecederstrand/exchangelib/blob/v5.1.0/CHANGELOG.md
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.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ecederstrand";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-WKQgfmEbil55WO3tWVq4n9wiJNw0Op/jbI7xt5vtKpA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|