depot/third_party/nixpkgs/pkgs/development/python-modules/pycec/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

41 lines
746 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, libcec
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pycec";
version = "0.5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "konikvranik";
repo = pname;
rev = "v${version}";
sha256 = "sha256-H18petSiUdftZN8Q3fPmfSJA3OZks+gI+FAq9LwkRsk=";
};
propagatedBuildInputs = [
libcec
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pycec"
];
meta = with lib; {
description = "Python modules to access HDMI CEC devices";
homepage = "https://github.com/konikvranik/pycec/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}