3128cd737c
Diff: https://github.com/ollo69/pyasuswrt/compare/refs/tags/v0.1.20...v0.1.21 Changelog: https://github.com/ollo69/pyasuswrt/releases/tag/v0.1.21
45 lines
891 B
Nix
45 lines
891 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyasuswrt";
|
|
version = "0.1.21";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ollo69";
|
|
repo = "pyasuswrt";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-kg475AWmc0i/W4dBg8jFmNyz3V67xjvzPkSlS09/9Oc=";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|