anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / imap-tools / default.nix
blobc6c0f3f4389787e3c096e380f843da1f6123c408
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "imap-tools";
12   version = "1.7.4";
14   disabled = pythonOlder "3.5";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "ikvk";
20     repo = "imap_tools";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-2qSmnJnjwXNysUh0xeXshLZklCIOd92aM3gXtL8JhlI=";
23   };
25   build-system = [ setuptools ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   disabledTests = [
30     # tests require a network connection
31     "test_action"
32     "test_attributes"
33     "test_connection"
34     "test_folders"
35     "test_idle"
36     "test_live"
37   ];
39   pythonImportsCheck = [ "imap_tools" ];
41   meta = with lib; {
42     description = "Work with email and mailbox by IMAP";
43     homepage = "https://github.com/ikvk/imap_tools";
44     changelog = "https://github.com/ikvk/imap_tools/blob/v${version}/docs/release_notes.rst";
45     license = licenses.asl20;
46     maintainers = with maintainers; [ dotlambda ];
47   };