depot/third_party/nixpkgs/pkgs/development/python-modules/samsungctl/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

37 lines
766 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";
};
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";
mainProgram = "samsungctl";
homepage = "https://github.com/Ape/samsungctl";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}