summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pycec/default.nix
blob: add007fee47010e3f50b76fd28cd8363372166f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  libcec,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pycec";
  version = "0.6.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "konikvranik";
    repo = "pycec";
    tag = "v${version}";
    hash = "sha256-5KQyHjAvHWeHFqcFHFJxDOPwWuVcFAN2wVdz9a77dzU=";
  };

  propagatedBuildInputs = [ libcec ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pycec" ];

  meta = {
    description = "Python modules to access HDMI CEC devices";
    mainProgram = "pycec";
    homepage = "https://github.com/konikvranik/pycec/";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}