1{
2 lib,
3 asynctest,
4 buildPythonPackage,
5 docutils,
6 fetchFromGitHub,
7 imaplib2,
8 mock,
9 pyopenssl,
10 pytestCheckHook,
11 pythonAtLeast,
12 pythonOlder,
13 pytz,
14 setuptools,
15 tzlocal,
16}:
17
18buildPythonPackage rec {
19 pname = "aioimaplib";
20 version = "1.0.1";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "bamthomas";
27 repo = "aioimaplib";
28 rev = "refs/tags/${version}";
29 hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0=";
30 };
31
32 build-system = [ setuptools ];
33
34 nativeCheckInputs = [
35 asynctest
36 docutils
37 imaplib2
38 mock
39 pyopenssl
40 pytestCheckHook
41 pytz
42 tzlocal
43 ];
44
45 # https://github.com/bamthomas/aioimaplib/issues/54
46 doCheck = pythonOlder "3.11";
47
48 disabledTests = [
49 # https://github.com/bamthomas/aioimaplib/issues/77
50 "test_get_quotaroot"
51 # asyncio.exceptions.TimeoutError
52 "test_idle"
53 ];
54
55 pythonImportsCheck = [ "aioimaplib" ];
56
57 meta = with lib; {
58 description = "Python asyncio IMAP4rev1 client library";
59 homepage = "https://github.com/bamthomas/aioimaplib";
60 license = licenses.gpl3Plus;
61 maintainers = with maintainers; [ dotlambda ];
62 };
63}