{ lib , backoff , buildPythonPackage , fetchFromGitHub , pythonOlder , pyserial , pyserial-asyncio , pytestCheckHook }: buildPythonPackage rec { pname = "velbus-aio"; version = "2023.10.2"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Cereal2nd"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-qRKVjiRrRg1YwwYCSp6KGvaS7QnYLIW5rum3X7vEANM="; fetchSubmodules = true; }; propagatedBuildInputs = [ backoff pyserial pyserial-asyncio ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "velbusaio" ]; meta = with lib; { description = "Python library to support the Velbus home automation system"; homepage = "https://github.com/Cereal2nd/velbus-aio"; changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; }