summary refs log tree commit diff
path: root/pkgs/development/python-modules/samsungctl/default.nix
blob: 92af8775d81db9f112bbcc4721698abadc99f772 (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
{ lib
, buildPythonPackage
, fetchPypi

# extra: websocket
, websocket-client
}:

buildPythonPackage rec {
  pname = "samsungctl";
  version = "0.7.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0ipz3fd65rqkxlb02sql0awc3vnslrwb2pfrsnpfnf8bfgxpbh9g";
  };

  passthru.optional-dependencies = {
    websocket = [
      websocket-client
    ];
    # interactive_ui requires curses package
  };

  # no tests
  doCheck = false;

  pythonImportsCheck = [ "samsungctl" ];

  meta = with lib; {
    description = "Remote control Samsung televisions via a TCP/IP connection";
    homepage = "https://github.com/Ape/samsungctl";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}