{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, pytest-asyncio, pytest-cov-stub, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "nrgkick-api"; version = "1.5.0"; pyproject = true; src = fetchFromGitHub { owner = "andijakl"; repo = "nrgkick-api"; tag = "v${version}"; hash = "sha256-WtSL9fUJF2xsX53epFcY++KwjnAs3YiKHDb2a5x4tfE="; }; build-system = [ setuptools ]; dependencies = [ aiohttp ]; nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytestCheckHook ]; pythonImportsCheck = [ "nrgkick_api" ]; meta = { description = "Python client for NRGkick Gen2 EV charger local REST API"; homepage = "https://github.com/andijakl/nrgkick-api"; changelog = "https://github.com/andijakl/nrgkick-api/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; }