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