504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
745 B
Nix
37 lines
745 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
|
|
# extra: websocket
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "samsungctl";
|
|
version = "0.7.1";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|