python313Packages.asusrouter: init at 1.18.2

API wrapper for communication with ASUSWRT-powered routers using
HTTP protocol

https://github.com/Vaskivskyi/asusrouter
This commit is contained in:
Fabian Affolter
2025-08-14 14:31:21 +02:00
parent d0d8ab7e3c
commit 1727b4e14b
2 changed files with 54 additions and 0 deletions
@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
pytest-asyncio,
pytestCheckHook,
urllib3,
xmltodict,
}:
buildPythonPackage rec {
pname = "asusrouter";
version = "1.18.2";
pyproject = true;
src = fetchFromGitHub {
owner = "Vaskivskyi";
repo = "asusrouter";
tag = version;
hash = "sha256-8kETQKvPwURyEabK/g8Ub+aLcPPTRs0FFWbSNU4jJZc=";
};
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 = with lib.maintainers; [ ];
};
}
+2
View File
@@ -1007,6 +1007,8 @@ self: super: with self; {
astunparse = callPackage ../development/python-modules/astunparse { };
asusrouter = callPackage ../development/python-modules/asusrouter { };
asyauth = callPackage ../development/python-modules/asyauth { };
asyauth-bad = callPackage ../development/python-modules/asyauth-bad { };