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