Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / imap-tools / default.nix
blob94f2257cc12c7b91534c50641b96b8ec7f8040bf
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "imap-tools";
10   version = "1.4.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-bTYfAXc/2bRj8TBd9mmg0EGjUcUu6aiZXl8MF0+1xcs=";
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   };