1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 06:42:33 +03:00
nixpkgs/pkgs/development/python-modules/pycec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
746 B
Nix
Raw Normal View History

2021-02-21 13:55:44 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, libcec
, pytestCheckHook
, pythonOlder
2021-02-21 13:55:44 +01:00
}:
buildPythonPackage rec {
pname = "pycec";
version = "0.5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
2021-02-21 13:55:44 +01:00
src = fetchFromGitHub {
owner = "konikvranik";
repo = pname;
rev = "v${version}";
sha256 = "sha256-H18petSiUdftZN8Q3fPmfSJA3OZks+gI+FAq9LwkRsk=";
2021-02-21 13:55:44 +01:00
};
propagatedBuildInputs = [
libcec
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pycec"
];
2021-02-21 13:55:44 +01:00
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 ];
};
}