504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
43 lines
964 B
Nix
43 lines
964 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchPypi
|
|
, packaging
|
|
, pytestCheckHook
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openwrt-luci-rpc";
|
|
version = "1.1.16";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ZvPMJbYCNKMXuTrHwXQvBZ/mMenYTsV1X4COiVxvJGY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
requests
|
|
packaging
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "openwrt_luci_rpc" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for interacting with the OpenWrt Luci RPC interface";
|
|
longDescription = ''
|
|
This module allows you to use the Luci RPC interface to fetch connected devices
|
|
on your OpenWrt based router. Supports 15.X & 17.X & 18.X or newer releases of
|
|
OpenWrt.
|
|
'';
|
|
homepage = "https://github.com/fbradyirl/openwrt-luci-rpc";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ matt-snider ];
|
|
};
|
|
}
|