at master 769 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 libcec, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pycec"; 12 version = "0.6.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "konikvranik"; 19 repo = "pycec"; 20 tag = "v${version}"; 21 hash = "sha256-5KQyHjAvHWeHFqcFHFJxDOPwWuVcFAN2wVdz9a77dzU="; 22 }; 23 24 propagatedBuildInputs = [ libcec ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "pycec" ]; 29 30 meta = with lib; { 31 description = "Python modules to access HDMI CEC devices"; 32 mainProgram = "pycec"; 33 homepage = "https://github.com/konikvranik/pycec/"; 34 license = with licenses; [ mit ]; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}