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