1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "imap-tools"; 11 version = "1.5.0"; 12 13 disabled = pythonOlder "3.5"; 14 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "ikvk"; 19 repo = "imap_tools"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-kY6Y8Uu1HwSkcmlKL5+zPh4n+4mofX2aoPVXAZvInlI="; 22 }; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 disabledTests = [ 27 # tests require a network connection 28 "test_action" 29 "test_attributes" 30 "test_connection" 31 "test_folders" 32 "test_idle" 33 "test_live" 34 ]; 35 36 pythonImportsCheck = [ "imap_tools" ]; 37 38 meta = with lib; { 39 description = "Work with email and mailbox by IMAP"; 40 homepage = "https://github.com/ikvk/imap_tools"; 41 changelog = "https://github.com/ikvk/imap_tools/blob/v${version}/docs/release_notes.rst"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ dotlambda ]; 44 }; 45}