mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
af32a73150
The tests rely on asynctest, which is not available for Python 3.11.
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, pythonOlder
|
|
, pythonAtLeast
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, docutils
|
|
, fetchFromGitHub
|
|
, imaplib2
|
|
, mock
|
|
, nose
|
|
, pyopenssl
|
|
, pytestCheckHook
|
|
, pytz
|
|
, tzlocal
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioimaplib";
|
|
version = "1.0.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bamthomas";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0=";
|
|
};
|
|
|
|
# https://github.com/bamthomas/aioimaplib/issues/54
|
|
doCheck = pythonOlder "3.11";
|
|
|
|
nativeCheckInputs = [
|
|
asynctest
|
|
docutils
|
|
imaplib2
|
|
mock
|
|
nose
|
|
pyopenssl
|
|
pytestCheckHook
|
|
pytz
|
|
tzlocal
|
|
];
|
|
|
|
disabledTests = [
|
|
# https://github.com/bamthomas/aioimaplib/issues/77
|
|
"test_get_quotaroot"
|
|
# asyncio.exceptions.TimeoutError
|
|
"test_idle"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aioimaplib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python asyncio IMAP4rev1 client library";
|
|
homepage = "https://github.com/bamthomas/aioimaplib";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|