1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, libcec
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "pycec";
10 version = "0.5.1";
11
12 src = fetchFromGitHub {
13 owner = "konikvranik";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "1ivnmihajhfkwwghgl0f8n9ragpirbmbj1mhj9bmjjc29zzdc3m6";
17 };
18
19 propagatedBuildInputs = [
20 libcec
21 ];
22
23 checkInputs = [
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [ "pycec" ];
28
29 meta = with lib; {
30 description = "Python modules to access HDMI CEC devices";
31 homepage = "https://github.com/konikvranik/pycec/";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}