about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/devolo-home-control-api/default.nix
blob: 1e388fd3a117132aae74a86173ff887209cb3993 (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
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-cov
, pytest-mock
, requests
, zeroconf
, websocket_client
, pytest-runner
}:

buildPythonPackage rec {
  pname = "devolo-home-control-api";
  version = "0.16.0";

  src = fetchFromGitHub {
    owner = "2Fake";
    repo = "devolo_home_control_api";
    rev = "v${version}";
    sha256 = "19zzdbx0dxlm8pq0yk00nn9gqqblgpp16fgl7z6a98hsa6459zzb";
  };

  nativeBuildInputs = [ pytest-runner ];

  propagatedBuildInputs = [
    requests
    zeroconf
    websocket_client
  ];

  checkInputs = [
    pytestCheckHook
    pytest-cov
    pytest-mock
  ];

  # Disable test that requires network access
  disabledTests = [ "test__on_pong" ];
  pythonImportsCheck = [ "devolo_home_control_api" ];

  meta = with lib; {
    description = "Python library to work with devolo Home Control";
    homepage = "https://github.com/2Fake/devolo_home_control_api";
    license = with licenses; [ gpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
}