2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pythonAtLeast
|
2021-01-15 22:18:51 +00:00
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, docutils
|
|
|
|
, fetchFromGitHub
|
|
|
|
, imaplib2
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pyopenssl
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytz
|
|
|
|
, tzlocal
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioimaplib";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.0.1";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bamthomas";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-14 12:49:19 +00:00
|
|
|
hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-15 22:18:51 +00:00
|
|
|
asynctest
|
|
|
|
docutils
|
|
|
|
imaplib2
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pyopenssl
|
|
|
|
pytestCheckHook
|
|
|
|
pytz
|
|
|
|
tzlocal
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/bamthomas/aioimaplib/issues/77
|
|
|
|
"test_get_quotaroot"
|
2022-09-22 12:36:57 +00:00
|
|
|
# asyncio.exceptions.TimeoutError
|
|
|
|
"test_idle"
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|