nixpkgs/pkgs/development/python-modules/aioimaplib/default.nix
Martin Weinelt af32a73150 python311Packages.aioimaplib: disable tests
The tests rely on asynctest, which is not available for Python 3.11.
2023-07-28 12:15:35 +02:00

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 ];
};
}