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 # https://github.com/bamthomas/aioimaplib/issues/54 32 doCheck = pythonOlder "3.11"; 33 34 nativeCheckInputs = [ 35 asynctest 36 docutils 37 imaplib2 38 mock 39 nose 40 pyopenssl 41 pytestCheckHook 42 pytz 43 tzlocal 44 ]; 45 46 disabledTests = [ 47 # https://github.com/bamthomas/aioimaplib/issues/77 48 "test_get_quotaroot" 49 # asyncio.exceptions.TimeoutError 50 "test_idle" 51 ]; 52 53 pythonImportsCheck = [ 54 "aioimaplib" 55 ]; 56 57 meta = with lib; { 58 description = "Python asyncio IMAP4rev1 client library"; 59 homepage = "https://github.com/bamthomas/aioimaplib"; 60 license = licenses.gpl3Plus; 61 maintainers = with maintainers; [ dotlambda ]; 62 }; 63}