1{ 2 lib, 3 backoff, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pythonOlder, 7 pyserial, 8 pyserial-asyncio, 9 pytestCheckHook, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "velbus-aio"; 15 version = "2024.4.1"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "Cereal2nd"; 22 repo = "velbus-aio"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-rskWnH5zFvBuNL5eJ8O4D6htRP/XtFcq1xH8ZXzT1I4="; 25 fetchSubmodules = true; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 backoff 32 pyserial 33 pyserial-asyncio 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "velbusaio" ]; 39 40 meta = with lib; { 41 description = "Python library to support the Velbus home automation system"; 42 homepage = "https://github.com/Cereal2nd/velbus-aio"; 43 changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${version}"; 44 license = with licenses; [ asl20 ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}