about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyipp/default.nix
blob: ed5a5f4576abbb0fddf077ff1f4221cb9b764861 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, deepmerge
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pytestcov
, yarl
}:

buildPythonPackage rec {
  pname = "pyipp";
  version = "0.11.0";

  src = fetchFromGitHub {
   owner = "ctalkington";
   repo = "python-ipp";
   rev = version;
   sha256 = "0ar3mkyfa9qi3av3885bvacpwlxh420if9ymdj8i4x06ymzc213d";
  };

  propagatedBuildInputs = [
    aiohttp
    deepmerge
    yarl
  ];

  checkInputs = [
    aresponses
    pytest-asyncio
    pytestcov
    pytestCheckHook
  ];

  # Some tests are failing due to encoding issues
  # https://github.com/ctalkington/python-ipp/issues/121
  disabledTests = [
    "test_internal_session"
    "test_request_port"
    "est_http_error426"
    "test_unexpected_response"
    "test_printer"
    "test_raw"
    "test_ipp_request"
    "test_request_tls"
    "test_ipp_error_0x0503"
  ];

  pythonImportsCheck = [ "pyipp" ];

  meta = with lib; {
    description = "Asynchronous Python client for Internet Printing Protocol (IPP)";
    homepage = "https://github.com/ctalkington/python-ipp";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}