Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / imap-tools / default.nix
blob136415eb54e5cca2aea6627740b92229aac56fdf
1 { lib
2 , buildPythonPackage
3 , isPy27
4 , fetchFromGitHub
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "imap-tools";
10   version = "0.39.0";
12   disabled = isPy27;
14   src = fetchFromGitHub {
15     owner = "ikvk";
16     repo = "imap_tools";
17     rev = "v${version}";
18     sha256 = "sha256-PyksCYVe7Ij/+bZpntHgY51I/ZVnC6L20TcKfTLr2CY=";
19   };
21   checkInputs = [
22     pytestCheckHook
23   ];
25   disabledTests = [
26     # tests require a network connection
27     "test_action"
28     "test_folders"
29     "test_connectio"
30     "test_attributes"
31     "test_live"
32   ];
34   pythonImportsCheck = [ "imap_tools" ];
36   meta = with lib; {
37     description = "Work with email and mailbox by IMAP";
38     homepage = "https://github.com/ikvk/imap_tools";
39     license = licenses.asl20;
40     maintainers = with maintainers; [ dotlambda ];
41   };