504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
48 lines
922 B
Nix
48 lines
922 B
Nix
{ lib
|
|
, asyncssh
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioasuswrt";
|
|
version = "1.4.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kennedyshead";
|
|
repo = pname;
|
|
rev = "V${version}";
|
|
sha256 = "1iv9f22v834g8wrjcynjn2azpzk8gsczv71jf7dw8aix0n04h325";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
asyncssh
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "--cov-report html" "" \
|
|
--replace "--cov-report term-missing" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"aioasuswrt"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for Asuswrt";
|
|
homepage = "https://github.com/kennedyshead/aioasuswrt";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|