2021-03-16 22:18:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-03-21 09:20:21 +00:00
|
|
|
, click
|
2021-03-16 22:18:45 +00:00
|
|
|
, fetchPypi
|
2020-03-21 09:20:21 +00:00
|
|
|
, packaging
|
2021-03-16 22:18:45 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
2020-03-21 09:20:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openwrt-luci-rpc";
|
2021-03-23 07:24:54 +00:00
|
|
|
version = "1.1.11";
|
2020-03-21 09:20:21 +00:00
|
|
|
|
2020-08-15 00:46:48 +00:00
|
|
|
src = fetchPypi {
|
2020-03-21 09:20:21 +00:00
|
|
|
inherit pname version;
|
2021-03-23 07:24:54 +00:00
|
|
|
sha256 = "sha256-DkitN+mwCZ14QEn2fTOqUrQTtoncR1ifP3WDSQ6qkkk=";
|
2020-03-21 09:20:21 +00:00
|
|
|
};
|
|
|
|
|
2021-03-16 22:18:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
requests
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-03-21 09:20:21 +00:00
|
|
|
|
2021-03-16 22:18:45 +00:00
|
|
|
pythonImportsCheck = [ "openwrt_luci_rpc" ];
|
2020-03-21 09:20:21 +00:00
|
|
|
|
2021-03-16 22:18:45 +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-03-21 09:20:21 +00:00
|
|
|
'';
|
|
|
|
homepage = "https://github.com/fbradyirl/openwrt-luci-rpc";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ matt-snider ];
|
|
|
|
};
|
|
|
|
}
|