Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 40 lines 1.2 kB view raw
1{ lib, fetchFromGitHub, buildPythonPackage, 2 pythonOlder, 3 lxml, tzlocal, python-dateutil, pygments, requests-kerberos, 4 defusedxml, cached-property, isodate, requests_ntlm, dnspython, 5 psutil, requests-mock, pyyaml, 6 oauthlib, requests_oauthlib, tzdata, 7 flake8, backports-zoneinfo 8}: 9 10buildPythonPackage rec { 11 pname = "exchangelib"; 12 version = "4.1.0"; 13 disabled = pythonOlder "3.5"; 14 15 # tests are not present in the PyPI version 16 src = fetchFromGitHub { 17 owner = "ecederstrand"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "0lkhjiz78x00d5gzn455660f31f8y4fcrqcn6rh0m41r1ar5im17"; 21 }; 22 23 checkInputs = [ psutil requests-mock pyyaml 24 flake8 25 ]; 26 propagatedBuildInputs = [ 27 lxml tzlocal tzdata python-dateutil pygments requests-kerberos 28 defusedxml cached-property isodate requests_ntlm dnspython 29 oauthlib requests_oauthlib 30 ] ++ lib.optionals (pythonOlder "3.9") [ 31 backports-zoneinfo 32 ]; 33 34 meta = with lib; { 35 description = "Client for Microsoft Exchange Web Services (EWS)"; 36 homepage = "https://github.com/ecederstrand/exchangelib"; 37 license = licenses.bsd2; 38 maintainers = with maintainers; [ catern ]; 39 }; 40}