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