{ libcec, lib, buildPythonPackage, fetchFromGitHub, setuptools, }: buildPythonPackage (finalAttrs: { pname = "cec"; version = "0.2.8"; pyproject = true; src = fetchFromGitHub { owner = "trainman419"; repo = "python-cec"; tag = finalAttrs.version; hash = "sha256-Y7XjSRT+mxsgTj5IXkOqLNpBMs5alUnJvGQU4yfR3Vw="; }; buildInputs = [ libcec.dev ]; build-system = [ setuptools ]; pythonImportsCheck = [ "cec" ]; meta = { description = "Control your TV, reciever and other CEC-compliant HDMI devices from a python script on a computer"; homepage = "https://github.com/trainman419/python-cec/"; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ jfly ]; }; })