{ lib, aiohttp, aioresponses, buildPythonPackage, click, cryptography, dateparser, fetchFromGitHub, marshmallow-dataclass, poetry-core, pyjwt, pytest-asyncio, pytestCheckHook, syrupy, tabulate, typeguard, }: buildPythonPackage rec { pname = "renault-api"; version = "0.5.2"; pyproject = true; src = fetchFromGitHub { owner = "hacf-fr"; repo = "renault-api"; tag = "v${version}"; hash = "sha256-7ZvUg2Dgu9hSG1VXDT+YC6PBbylsR4d12ZR66UrPlyE="; }; build-system = [ poetry-core ]; dependencies = [ aiohttp cryptography marshmallow-dataclass pyjwt ]; optional-dependencies = { cli = [ click dateparser tabulate ]; }; nativeCheckInputs = [ aioresponses pytest-asyncio pytestCheckHook syrupy typeguard ] ++ lib.concatAttrValues optional-dependencies; pythonImportsCheck = [ "renault_api" ]; meta = { description = "Python library to interact with the Renault API"; homepage = "https://github.com/hacf-fr/renault-api"; changelog = "https://github.com/hacf-fr/renault-api/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; mainProgram = "renault-api"; }; }