1{ lib
2, buildPythonPackage
3, isPy27
4, fetchFromGitHub
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "imap-tools";
10 version = "0.50.0";
11
12 disabled = isPy27;
13
14 src = fetchFromGitHub {
15 owner = "ikvk";
16 repo = "imap_tools";
17 rev = "v${version}";
18 sha256 = "sha256-4OMWLWvNRg7z4KAAkB1l5YaWILFwIepZOWhBd64SGWI=";
19 };
20
21 checkInputs = [
22 pytestCheckHook
23 ];
24
25 disabledTests = [
26 # tests require a network connection
27 "test_action"
28 "test_folders"
29 "test_connectio"
30 "test_attributes"
31 "test_live"
32 ];
33
34 pythonImportsCheck = [ "imap_tools" ];
35
36 meta = with lib; {
37 description = "Work with email and mailbox by IMAP";
38 homepage = "https://github.com/ikvk/imap_tools";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ dotlambda ];
41 };
42}