about summary refs log tree commit diff
path: root/pkgs/development/python-modules/aioimaplib/default.nix
blob: 737a0a3d8e97a35fd98c86a21bea9844d5814880 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  lib,
  asynctest,
  buildPythonPackage,
  docutils,
  fetchFromGitHub,
  imaplib2,
  mock,
  pyopenssl,
  pytestCheckHook,
  pythonOlder,
  pytz,
  setuptools,
  tzlocal,
}:

buildPythonPackage rec {
  pname = "aioimaplib";
  version = "1.1.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "bamthomas";
    repo = "aioimaplib";
    rev = "refs/tags/${version}";
    hash = "sha256-TjCPGZGsSb+04kQNzHU3kWBo2vY34ujEqh1GIMIehJc=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [
    asynctest
    docutils
    imaplib2
    mock
    pyopenssl
    pytestCheckHook
    pytz
    tzlocal
  ];

  # https://github.com/bamthomas/aioimaplib/issues/54
  doCheck = pythonOlder "3.11";

  pythonImportsCheck = [ "aioimaplib" ];

  meta = with lib; {
    description = "Python asyncio IMAP4rev1 client library";
    homepage = "https://github.com/bamthomas/aioimaplib";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ dotlambda ];
  };
}