mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
39 lines
756 B
Nix
39 lines
756 B
Nix
{
|
|
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 ];
|
|
};
|
|
})
|