Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 56 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, yarl,}:
buildPythonPackage rec { pname = "adguardhome"; version = "0.8.1"; pyproject = true;
src = fetchFromGitHub { owner = "frenck"; repo = "python-${pname}"; tag = "v${version}"; hash = "sha256-pc7UfR/0mQZ98FyomQErz5hePHy6KE2h9UhJ9lFGtFA="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail '"0.0.0"' '"${version}"' '';
build-system = [ poetry-core ];
dependencies = [ aiohttp yarl ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytestCheckHook ];
pythonImportsCheck = [ "adguardhome" ];
meta = { description = "Python client for the AdGuard Home API"; homepage = "https://github.com/frenck/python-adguardhome"; changelog = "https://github.com/frenck/python-adguardhome/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jamiemagee ]; };}