python3Packages.openwrt-luci-rpc: init at 1.1.2
This commit is contained in:
parent
00ca0c4869
commit
c015badaa2
36
pkgs/development/python-modules/openwrt-luci-rpc/default.nix
Normal file
36
pkgs/development/python-modules/openwrt-luci-rpc/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user