3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/imap-tools/default.nix
2021-10-11 01:54:19 +02:00

46 lines
932 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "imap-tools";
version = "0.49.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "ikvk";
repo = "imap_tools";
rev = "v${version}";
sha256 = "071bri1h6j8saqqlb50zibdrk5hgkpwp4ysiskl1zin18794bq82";
};
checkInputs = [
pytestCheckHook
];
disabledTests = [
# tests require a network connection
"test_action"
"test_folders"
"test_connectio"
"test_attributes"
"test_live"
# logic operator tests broken in 0.49.0
# https://github.com/ikvk/imap_tools/issues/143
"test_logic_operators"
];
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 ];
};
}