about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/openwrt-luci-rpc/default.nix
blob: 7c507cba15e0f20361f231952c547617ebf7bd70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ 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 ];
  };
}