depot/third_party/nixpkgs/pkgs/development/python-modules/pycec/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

42 lines
787 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, libcec
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pycec";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "konikvranik";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-5KQyHjAvHWeHFqcFHFJxDOPwWuVcFAN2wVdz9a77dzU=";
};
propagatedBuildInputs = [
libcec
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pycec"
];
meta = with lib; {
description = "Python modules to access HDMI CEC devices";
mainProgram = "pycec";
homepage = "https://github.com/konikvranik/pycec/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}