2021-02-18 18:05:17 +00:00
|
|
|
{ lib
|
|
|
|
, asyncssh
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioasuswrt";
|
2021-11-08 22:40:38 +00:00
|
|
|
version = "1.4.0";
|
2021-02-18 18:05:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kennedyshead";
|
|
|
|
repo = pname;
|
2021-11-08 22:40:38 +00:00
|
|
|
rev = "V${version}";
|
|
|
|
sha256 = "1iv9f22v834g8wrjcynjn2azpzk8gsczv71jf7dw8aix0n04h325";
|
2021-02-18 18:05:17 +00:00
|
|
|
};
|
|
|
|
|
2021-11-08 22:40:38 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
asyncssh
|
|
|
|
];
|
2021-02-18 18:05:17 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-08 22:40:38 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "--cov-report html" "" \
|
|
|
|
--replace "--cov-report term-missing" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioasuswrt"
|
|
|
|
];
|
2021-02-18 18:05:17 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for Asuswrt";
|
|
|
|
homepage = "https://github.com/kennedyshead/aioasuswrt";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|