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