1{
2 lib,
3 asyncssh,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytest-cov-stub,
7 pytest-asyncio_0,
8 pytest-mock,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "aioasuswrt";
16 version = "1.4.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "kennedyshead";
23 repo = "aioasuswrt";
24 tag = "V${version}";
25 hash = "sha256-RQxIgAU9KsTbcTKc/Zl+aP77lbDSeiYzR48MtIVwacc=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [ asyncssh ];
31
32 nativeCheckInputs = [
33 pytest-asyncio_0
34 pytest-cov-stub
35 pytest-mock
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "aioasuswrt" ];
40
41 meta = with lib; {
42 description = "Python module for Asuswrt";
43 homepage = "https://github.com/kennedyshead/aioasuswrt";
44 changelog = "https://github.com/kennedyshead/aioasuswrt/releases/tag/V${version}";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ fab ];
47 };
48}