2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "imap-tools";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "1.7.1";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ikvk";
|
|
|
|
repo = "imap_tools";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-G2CO5WgMvpPeq/EM9eFW36xYoMD+7nUm8FsMWfCoLf4=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# tests require a network connection
|
|
|
|
"test_action"
|
|
|
|
"test_attributes"
|
2022-02-20 05:27:41 +00:00
|
|
|
"test_connection"
|
|
|
|
"test_folders"
|
|
|
|
"test_idle"
|
2021-02-05 17:12:51 +00:00
|
|
|
"test_live"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "imap_tools" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Work with email and mailbox by IMAP";
|
|
|
|
homepage = "https://github.com/ikvk/imap_tools";
|
2022-04-27 09:35:20 +00:00
|
|
|
changelog = "https://github.com/ikvk/imap_tools/blob/v${version}/docs/release_notes.rst";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|