Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 38 lines 1.1 kB view raw
1{ stdenv, 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, 7 flake8, 8}: 9 10buildPythonPackage rec { 11 pname = "exchangelib"; 12 version = "3.2.1"; 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 = "1sh780q2iwdm3bnlnfdacracf0n7jhbv0g39cdx65v3d510zp4jv"; 21 }; 22 23 checkInputs = [ psutil requests-mock pyyaml 24 flake8 25 ]; 26 propagatedBuildInputs = [ 27 lxml tzlocal python-dateutil pygments requests-kerberos 28 defusedxml cached-property isodate requests_ntlm dnspython 29 oauthlib requests_oauthlib 30 ]; 31 32 meta = with stdenv.lib; { 33 description = "Client for Microsoft Exchange Web Services (EWS)"; 34 homepage = "https://github.com/ecederstrand/exchangelib"; 35 license = licenses.bsd2; 36 maintainers = with maintainers; [ catern ]; 37 }; 38}