{ lib , buildPythonPackage , fetchFromGitHub , async-timeout , chacha20poly1305-reuseable , mock , noiseprotocol , protobuf , pytest-asyncio , pytestCheckHook , pythonOlder , zeroconf }: buildPythonPackage rec { pname = "aioesphomeapi"; version = "17.0.1"; format = "setuptools"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "esphome"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-CKh517bJA6enZJO3woj9jsL2hMPNfIrKhOO3vTuvyu0="; }; propagatedBuildInputs = [ async-timeout chacha20poly1305-reuseable noiseprotocol protobuf zeroconf ]; nativeCheckInputs = [ mock pytest-asyncio pytestCheckHook ]; pythonImportsCheck = [ "aioesphomeapi" ]; meta = with lib; { description = "Python Client for ESPHome native API"; homepage = "https://github.com/esphome/aioesphomeapi"; changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab hexa ]; }; }