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