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