1{ lib
2, buildPythonPackage
3, click
4, fetchPypi
5, packaging
6, pytestCheckHook
7, requests
8}:
9
10buildPythonPackage rec {
11 pname = "openwrt-luci-rpc";
12 version = "1.1.16";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-ZvPMJbYCNKMXuTrHwXQvBZ/mMenYTsV1X4COiVxvJGY=";
17 };
18
19 propagatedBuildInputs = [
20 click
21 requests
22 packaging
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "openwrt_luci_rpc" ];
30
31 meta = with lib; {
32 description = "Python module for interacting with the OpenWrt Luci RPC interface";
33 longDescription = ''
34 This module allows you to use the Luci RPC interface to fetch connected devices
35 on your OpenWrt based router. Supports 15.X & 17.X & 18.X or newer releases of
36 OpenWrt.
37 '';
38 homepage = "https://github.com/fbradyirl/openwrt-luci-rpc";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ matt-snider ];
41 };
42}