depot/third_party/nixpkgs/pkgs/development/python-modules/aioimaplib/default.nix

61 lines
1 KiB
Nix
Raw Normal View History

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