2021-01-31 13:07:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "imap-tools";
|
2021-12-10 17:40:45 +00:00
|
|
|
version = "0.50.2";
|
2021-01-31 13:07:35 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ikvk";
|
|
|
|
repo = "imap_tools";
|
|
|
|
rev = "v${version}";
|
2021-12-10 17:40:45 +00:00
|
|
|
hash = "sha256-ki38Kr+eDEIQPRuoQePR7dCRDSgq2ZLXws1pq2gtQrI=";
|
2021-01-31 13:07:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# tests require a network connection
|
|
|
|
"test_action"
|
|
|
|
"test_folders"
|
2021-12-10 17:40:45 +00:00
|
|
|
"test_connection"
|
2021-01-31 13:07:35 +00:00
|
|
|
"test_attributes"
|
|
|
|
"test_live"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "imap_tools" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Work with email and mailbox by IMAP";
|
|
|
|
homepage = "https://github.com/ikvk/imap_tools";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|