1{ lib 2, backoff 3, buildPythonPackage 4, fetchFromGitHub 5, pythonOlder 6, pyserial 7, pyserial-asyncio 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "velbus-aio"; 13 version = "2021.11.7"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "Cereal2nd"; 20 repo = pname; 21 rev = version; 22 sha256 = "sha256-itaYSfZm+/vF/tKRO2BW4qXrDXP0YfBrKiq9bMGFj0M="; 23 }; 24 25 propagatedBuildInputs = [ 26 backoff 27 pyserial 28 pyserial-asyncio 29 ]; 30 31 checkInputs = [ 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ 36 "velbusaio" 37 ]; 38 39 meta = with lib; { 40 description = "Python library to support the Velbus home automation system"; 41 homepage = "https://github.com/Cereal2nd/velbus-aio"; 42 license = with licenses; [ asl20 ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}