python311Packages.pyasuswrt: init at 0.1.20

Library for communication with ASUSWRT routers via HTTP

https://github.com/ollo69/pyasuswrt
This commit is contained in:
Fabian Affolter 2023-12-07 13:49:08 +01:00 committed by Martin Weinelt
parent 7a500f65c4
commit 8ca90ac70f
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pyasuswrt";
version = "0.1.20";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ollo69";
repo = "pyasuswrt";
rev = "refs/tags/v${version}";
hash = "sha256-QsqyijOYEtp6k2rsDheGMVij4s5a5ZfUfsLIq+BaYV8=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
];
# Tests require physical hardware
doCheck = false;
pythonImportsCheck = [
"pyasuswrt"
];
meta = with lib; {
description = "Library for communication with ASUSWRT routers via HTTP";
homepage = "https://github.com/ollo69/pyasuswrt";
changelog = "https://github.com/ollo69/pyasuswrt/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}

View File

@ -9920,6 +9920,8 @@ self: super: with self; {
pyasn1-modules = callPackage ../development/python-modules/pyasn1-modules { };
pyasuswrt = callPackage ../development/python-modules/pyasuswrt { };
pyathena = callPackage ../development/python-modules/pyathena { };
pyatmo = callPackage ../development/python-modules/pyatmo { };