2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
|
|
|
|
# extra: websocket
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "samsungctl";
|
|
|
|
version = "0.7.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0ipz3fd65rqkxlb02sql0awc3vnslrwb2pfrsnpfnf8bfgxpbh9g";
|
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
passthru.extras-require = {
|
|
|
|
websocket = [
|
|
|
|
websocket-client
|
|
|
|
];
|
|
|
|
# interactive_ui requires curses package
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|