fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / development / python-modules / pycec / default.nix
blobdd18f56d9826ee005cf8d63c9d4eed6ed2588772
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   libcec,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "pycec";
12   version = "0.6.0";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "konikvranik";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-5KQyHjAvHWeHFqcFHFJxDOPwWuVcFAN2wVdz9a77dzU=";
22   };
24   propagatedBuildInputs = [ libcec ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "pycec" ];
30   meta = with lib; {
31     description = "Python modules to access HDMI CEC devices";
32     mainProgram = "pycec";
33     homepage = "https://github.com/konikvranik/pycec/";
34     license = with licenses; [ mit ];
35     maintainers = with maintainers; [ fab ];
36   };