1{
2 lib,
3 buildPythonPackage,
4 click,
5 fetchPypi,
6 packaging,
7 pytestCheckHook,
8 requests,
9}:
10
11buildPythonPackage rec {
12 pname = "openwrt-luci-rpc";
13 version = "1.1.17";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-RFZCnQTDs3vre0qbedIEnng7lGo3Ikp0Bw4+7sbPRJk=";
19 };
20
21 propagatedBuildInputs = [
22 click
23 requests
24 packaging
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
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}