about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pycec/default.nix
blob: 58da1c55b9349a73aad7bcd40a327210df0e0d45 (plain) (blame)
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
35
36
37
38
39
40
41
{ 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}";
    hash = "sha256-H18petSiUdftZN8Q3fPmfSJA3OZks+gI+FAq9LwkRsk=";
  };

  propagatedBuildInputs = [
    libcec
  ];

  nativeCheckInputs = [
    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 ];
  };
}