1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "pyws66i";
11 version = "1.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "ssaenger";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-NTL2+xLqSNsz4YdUTwr0nFjhm1NNgB8qDnWSoE2sizY=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "pyws66i" ];
26
27 meta = with lib; {
28 description = "Library to interface with WS66i 6-zone amplifier";
29 homepage = "https://github.com/bigmoby/pyialarmxr";
30 license = licenses.mit;
31 maintainers = with maintainers; [ fab ];
32 };
33}