1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "imaplib2";
11 version = "3.6";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "jazzband";
18 repo = "imaplib2";
19 rev = "v${version}";
20 sha256 = "14asi3xnvf4bb394k5j8c3by6svvmrr75pawzy6kaax5jx0h793m";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "imaplib2" ];
26
27 meta = with lib; {
28 description = "Threaded Python IMAP4 client";
29 homepage = "https://github.com/jazzband/imaplib2";
30 license = licenses.mit;
31 maintainers = with maintainers; [ dotlambda ];
32 };
33}