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