1{ stdenv, fetchFromGitHub, buildPythonPackage,
2 lxml, tzlocal, python-dateutil, pygments, future, requests-kerberos,
3 defusedxml, cached-property, isodate, requests_ntlm, dnspython,
4 psutil, requests-mock, pyyaml
5}:
6
7buildPythonPackage rec {
8 pname = "exchangelib";
9 version = "1.11.4";
10
11 # tests are not present in the PyPI version
12 src = fetchFromGitHub {
13 owner = "ecederstrand";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "1fpbnjnmqm62vll3m2ys1naikch70kqm26hz86f1cl0r2l2afbab";
17 };
18
19 # one test is failing due to it trying to send a request to example.com
20 patches = [ ./skip_failing_test.patch ];
21 checkInputs = [ psutil requests-mock pyyaml ];
22 propagatedBuildInputs = [
23 lxml tzlocal python-dateutil pygments requests-kerberos
24 future defusedxml cached-property isodate requests_ntlm dnspython ];
25
26 meta = with stdenv.lib; {
27 description = "Client for Microsoft Exchange Web Services (EWS)";
28 homepage = "https://github.com/ecederstrand/exchangelib";
29 license = licenses.bsd2;
30 maintainers = with maintainers; [ catern ];
31 };
32}