1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 six,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "imapclient";
11 version = "3.0.1";
12
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "mjs";
17 repo = "imapclient";
18 tag = version;
19 hash = "sha256-WY3OLPUwixrL2NSLfNBSSNMXJEoYBL+O6KoglU3Cz9g=";
20 };
21
22 propagatedBuildInputs = [ six ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 pythonImportsCheck = [
27 "imapclient"
28 "imapclient.response_types"
29 "imapclient.exceptions"
30 "imapclient.testable_imapclient"
31 "imapclient.tls"
32 ];
33
34 meta = with lib; {
35 homepage = "https://imapclient.readthedocs.io";
36 description = "Easy-to-use, Pythonic and complete IMAP client library";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [
39 almac
40 dotlambda
41 ];
42 };
43}