1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder, isPy36
2, nose, asynctest, mock, pytz, tzlocal, imaplib2, docutils, pyopenssl }:
3
4buildPythonPackage rec {
5 pname = "aioimaplib";
6 version = "0.7.15";
7
8 # PyPI tarball doesn't ship tests
9 src = fetchFromGitHub {
10 owner = "bamthomas";
11 repo = pname;
12 rev = version;
13 sha256 = "15nny3y8pwaizq1zmkg43ym5jszk2hs010z12yn2d0j1fibymwbj";
14 };
15
16 disabled = !(isPy3k && pythonOlder "3.7");
17
18 checkInputs = [ nose asynctest mock pytz tzlocal imaplib2 docutils pyopenssl ];
19
20 # https://github.com/bamthomas/aioimaplib/issues/35
21 doCheck = !isPy36;
22
23 meta = with lib; {
24 description = "Python asyncio IMAP4rev1 client library";
25 homepage = https://github.com/bamthomas/aioimaplib;
26 license = licenses.gpl3Plus;
27 maintainers = with maintainers; [ dotlambda ];
28 };
29}