Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / imap-tools / default.nix
blob6f9182bc1220c3d69be32ab9a319fee27ec6ca44
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "imap-tools";
10   version = "1.5.0";
12   disabled = pythonOlder "3.5";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "ikvk";
18     repo = "imap_tools";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-kY6Y8Uu1HwSkcmlKL5+zPh4n+4mofX2aoPVXAZvInlI=";
21   };
23   nativeCheckInputs = [
24     pytestCheckHook
25   ];
27   disabledTests = [
28     # tests require a network connection
29     "test_action"
30     "test_attributes"
31     "test_connection"
32     "test_folders"
33     "test_idle"
34     "test_live"
35   ];
37   pythonImportsCheck = [ "imap_tools" ];
39   meta = with lib; {
40     description = "Work with email and mailbox by IMAP";
41     homepage = "https://github.com/ikvk/imap_tools";
42     changelog = "https://github.com/ikvk/imap_tools/blob/v${version}/docs/release_notes.rst";
43     license = licenses.asl20;
44     maintainers = with maintainers; [ dotlambda ];
45   };