2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, click
|
2021-03-19 17:17:44 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, packaging
|
2021-03-19 17:17:44 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openwrt-luci-rpc";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "1.1.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-vLRmv8xxbjBp6TDFExfprqw3JGi8qCVZ5bV7AgVZnuA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
requests
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-19 17:17:44 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
pythonImportsCheck = [ "openwrt_luci_rpc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
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.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/fbradyirl/openwrt-luci-rpc";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ matt-snider ];
|
|
|
|
};
|
|
|
|
}
|