2020-03-21 09:20:21 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, click
|
|
|
|
, requests
|
|
|
|
, packaging
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openwrt-luci-rpc";
|
2020-10-25 09:06:54 +00:00
|
|
|
version = "1.1.6";
|
2020-03-21 09:20:21 +00:00
|
|
|
|
2020-08-15 01:46:48 +01:00
|
|
|
src = fetchPypi {
|
2020-03-21 09:20:21 +00:00
|
|
|
inherit pname version;
|
2020-10-25 09:06:54 +00:00
|
|
|
sha256 = "841c7fc956ad42825a2f2cd0cb2aa02005c3482b200ff7aaccd390345c9f3e18";
|
2020-03-21 09:20:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|