Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
pytest-asyncio,
pytestCheckHook,
urllib3,
xmltodict,
}:
buildPythonPackage rec {
pname = "asusrouter";
version = "1.21.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Vaskivskyi";
repo = "asusrouter";
tag = version;
hash = "sha256-SMQ1jEEMRngl0idWXi7R7KinxR9NnH39vB/itVi7A4A=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools==80.9.0" "setuptools"
'';
build-system = [ setuptools ];
dependencies = [
aiohttp
urllib3
xmltodict
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "asusrouter" ];
meta = {
description = "API wrapper for communication with ASUSWRT-powered routers using HTTP protocol";
homepage = "https://github.com/Vaskivskyi/asusrouter";
changelog = "https://github.com/Vaskivskyi/asusrouter/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}