blob: 1cec31b85dadc51847b8068c4794584f98ef2c84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
pytest-asyncio,
pytestCheckHook,
urllib3,
xmltodict,
}:
buildPythonPackage rec {
pname = "asusrouter";
version = "1.21.3";
pyproject = true;
src = fetchFromGitHub {
owner = "Vaskivskyi";
repo = "asusrouter";
tag = version;
hash = "sha256-7OmuJ3VKBdg5hK8RAkA8DQGd4L+g9S17VT0B5JhNaSA=";
};
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 = [ ];
};
}
|