{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, hatchling, httpx, pytest-asyncio, pytestCheckHook, pythonOlder, }: buildPythonPackage rec { pname = "aioweenect"; version = "1.1.2"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "eifinger"; repo = "aioweenect"; rev = "refs/tags/v${version}"; hash = "sha256-qVhF+gy5qcH/okuncDuzbAUPonkmQo1/QwOjC70IV4w="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "--cov --cov-report term-missing --cov=src/aioweenect --asyncio-mode=auto" "" ''; pythonRelaxDeps = [ "aiohttp" ]; build-system = [ hatchling ]; dependencies = [ aiohttp httpx ]; nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook ]; pythonImportsCheck = [ "aioweenect" ]; meta = with lib; { description = "Library for the weenect API"; homepage = "https://github.com/eifinger/aioweenect"; changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }