blob: 2e7666d3ab0b5383871c38644806747a4d624d86 (
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
|
{ buildPythonPackage
, fetchPypi
, lib
, click
, requests
, packaging
}:
with lib;
buildPythonPackage rec {
pname = "openwrt-luci-rpc";
version = "1.1.7";
src = fetchPypi {
inherit pname version;
sha256 = "8074c1ed24cdd1fadc5a99bd63d9313a0a44703714473ed781ed11e7fb45c96f";
};
postPatch = ''
substituteInPlace setup.py --replace "requests==2.21.0" "requests"
substituteInPlace setup.py --replace "packaging==19.1" "packaging"
'';
propagatedBuildInputs = [ click requests packaging ];
meta = {
description = ''
Python3 module for interacting with the OpenWrt Luci RPC interface.
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 ];
};
}
|