nixpkgs/pkgs/development/python-modules/aioimaplib/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

61 lines
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=";
};
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 ];
};
}