1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 imaplib2, 6 mock, 7 poetry-core, 8 pyopenssl, 9 pytest-asyncio, 10 pytestCheckHook, 11 pythonOlder, 12 pytz, 13}: 14 15buildPythonPackage rec { 16 pname = "aioimaplib"; 17 version = "2.0.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchFromGitHub { 23 owner = "bamthomas"; 24 repo = "aioimaplib"; 25 tag = version; 26 hash = "sha256-njzSpKPis033eLoRKXL538ljyMOB43chslio1wodrKU="; 27 }; 28 29 build-system = [ poetry-core ]; 30 31 nativeCheckInputs = [ 32 imaplib2 33 mock 34 pyopenssl 35 pytest-asyncio 36 pytestCheckHook 37 pytz 38 ]; 39 40 disabledTests = [ 41 # TimeoutError 42 "test_idle_start__exits_queue_get_without_timeout_error" 43 ]; 44 45 pythonImportsCheck = [ "aioimaplib" ]; 46 47 meta = with lib; { 48 description = "Python asyncio IMAP4rev1 client library"; 49 homepage = "https://github.com/bamthomas/aioimaplib"; 50 license = licenses.gpl3Plus; 51 maintainers = with maintainers; [ dotlambda ]; 52 }; 53}