1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyasuswrt";
12 version = "0.1.21";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "ollo69";
19 repo = "pyasuswrt";
20 tag = "v${version}";
21 hash = "sha256-kg475AWmc0i/W4dBg8jFmNyz3V67xjvzPkSlS09/9Oc=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ aiohttp ];
27
28 # Tests require physical hardware
29 doCheck = false;
30
31 pythonImportsCheck = [ "pyasuswrt" ];
32
33 meta = with lib; {
34 description = "Library for communication with ASUSWRT routers via HTTP";
35 homepage = "https://github.com/ollo69/pyasuswrt";
36 changelog = "https://github.com/ollo69/pyasuswrt/releases/tag/v${version}";
37 license = licenses.mit;
38 maintainers = [ ];
39 };
40}