2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, docutils
|
|
|
|
, fetchFromGitHub
|
|
|
|
, imaplib2
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pyopenssl
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, tzlocal
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioimaplib";
|
2021-01-15 22:18:51 +00:00
|
|
|
version = "0.7.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bamthomas";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "037fxwmkdfb95cqcykrhn37p138wg9pvlsgdf45vyn1mhz5crky5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
docutils
|
|
|
|
imaplib2
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pyopenssl
|
|
|
|
pytestCheckHook
|
|
|
|
pytz
|
|
|
|
tzlocal
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# Project is using asynctest with doesn't work with Python 3.8 and above
|
|
|
|
# https://github.com/bamthomas/aioimaplib/issues/54
|
|
|
|
doCheck = pythonOlder "3.8";
|
|
|
|
pythonImportsCheck = [ "aioimaplib" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python asyncio IMAP4rev1 client library";
|
|
|
|
homepage = "https://github.com/bamthomas/aioimaplib";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|