python3Packages.openwrt-luci-rpc: init at 1.1.2

This commit is contained in:
Matt Snider 2020-03-21 10:20:21 +01:00 committed by Jon
parent 00ca0c4869
commit c015badaa2
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ buildPythonPackage
, fetchPypi
, lib
, click
, requests
, packaging
}:
with lib;
buildPythonPackage rec {
pname = "openwrt-luci-rpc";
version = "1.1.2";
srcs = fetchPypi {
inherit pname version;
sha256 = "144bw7w1xvpdkad5phflpkl15ih5pvi19799wmvfv8mj1dn1yjhp";
};
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 ];
};
}

View File

@ -7040,6 +7040,8 @@ in {
pyemd = callPackage ../development/python-modules/pyemd { };
openwrt-luci-rpc = disabledIf (!isPy3k) (callPackage ../development/python-modules/openwrt-luci-rpc { });
pulp = callPackage ../development/python-modules/pulp { };
behave = callPackage ../development/python-modules/behave { };