Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, pythonOlder 3, pythonAtLeast 4, asynctest 5, buildPythonPackage 6, docutils 7, fetchFromGitHub 8, imaplib2 9, mock 10, nose 11, pyopenssl 12, pytestCheckHook 13, pytz 14, tzlocal 15}: 16 17buildPythonPackage rec { 18 pname = "aioimaplib"; 19 version = "1.0.1"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.5"; 23 24 src = fetchFromGitHub { 25 owner = "bamthomas"; 26 repo = pname; 27 rev = version; 28 hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0="; 29 }; 30 31 nativeCheckInputs = [ 32 asynctest 33 docutils 34 imaplib2 35 mock 36 nose 37 pyopenssl 38 pytestCheckHook 39 pytz 40 tzlocal 41 ]; 42 43 disabledTests = [ 44 # https://github.com/bamthomas/aioimaplib/issues/77 45 "test_get_quotaroot" 46 # asyncio.exceptions.TimeoutError 47 "test_idle" 48 ]; 49 50 pythonImportsCheck = [ 51 "aioimaplib" 52 ]; 53 54 meta = with lib; { 55 description = "Python asyncio IMAP4rev1 client library"; 56 homepage = "https://github.com/bamthomas/aioimaplib"; 57 license = licenses.gpl3Plus; 58 maintainers = with maintainers; [ dotlambda ]; 59 }; 60}