59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
imaplib2,
|
|
mock,
|
|
poetry-core,
|
|
pyopenssl,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pytz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioimaplib";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iroco-co";
|
|
repo = "aioimaplib";
|
|
tag = version;
|
|
hash = "sha256-njzSpKPis033eLoRKXL538ljyMOB43chslio1wodrKU=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
nativeCheckInputs = [
|
|
imaplib2
|
|
mock
|
|
pyopenssl
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
pytz
|
|
];
|
|
|
|
disabledTests = [
|
|
# TimeoutError
|
|
"test_idle_start__exits_queue_get_without_timeout_error"
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# Comparison to magic strings
|
|
"test_idle_loop"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "aioimaplib" ];
|
|
|
|
meta = {
|
|
description = "Python asyncio IMAP4rev1 client library";
|
|
homepage = "https://github.com/iroco-co/aioimaplib";
|
|
changelog = "https://github.com/iroco-co/aioimaplib/blob/${src.tag}/CHANGES.rst";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
};
|
|
}
|