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