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