2019-02-23 11:41:04 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder, isPy36
|
2018-06-30 10:55:02 +01:00
|
|
|
, nose, asynctest, mock, pytz, tzlocal, imaplib2, docutils, pyopenssl }:
|
2018-02-04 21:47:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioimaplib";
|
2019-02-23 11:41:04 +00:00
|
|
|
version = "0.7.15";
|
2018-02-04 21:47:01 +00:00
|
|
|
|
|
|
|
# PyPI tarball doesn't ship tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bamthomas";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-02-23 11:41:04 +00:00
|
|
|
sha256 = "15nny3y8pwaizq1zmkg43ym5jszk2hs010z12yn2d0j1fibymwbj";
|
2018-02-04 21:47:01 +00:00
|
|
|
};
|
|
|
|
|
2019-02-23 11:41:04 +00:00
|
|
|
disabled = !(isPy3k && pythonOlder "3.7");
|
2018-02-04 21:47:01 +00:00
|
|
|
|
2018-06-30 10:55:02 +01:00
|
|
|
checkInputs = [ nose asynctest mock pytz tzlocal imaplib2 docutils pyopenssl ];
|
|
|
|
|
|
|
|
# https://github.com/bamthomas/aioimaplib/issues/35
|
2019-02-23 11:41:04 +00:00
|
|
|
doCheck = !isPy36;
|
2018-02-04 21:47:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python asyncio IMAP4rev1 client library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bamthomas/aioimaplib";
|
2018-02-04 21:47:01 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|