python3Packages.openwrt-luci-rpc: update testing part and meta
This commit is contained in:
parent
36e263f430
commit
877ec087cd
@ -1,13 +1,12 @@
|
|||||||
{ buildPythonPackage
|
{ lib
|
||||||
, fetchPypi
|
, buildPythonPackage
|
||||||
, lib
|
|
||||||
, click
|
, click
|
||||||
, requests
|
, fetchPypi
|
||||||
, packaging
|
, packaging
|
||||||
|
, pytestCheckHook
|
||||||
|
, requests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "openwrt-luci-rpc";
|
pname = "openwrt-luci-rpc";
|
||||||
version = "1.1.8";
|
version = "1.1.8";
|
||||||
@ -17,17 +16,24 @@ buildPythonPackage rec {
|
|||||||
sha256 = "sha256-bo9HLT0q0yiLJI7i5v/36G82FHbGCtnAI50iGniyKSU=";
|
sha256 = "sha256-bo9HLT0q0yiLJI7i5v/36G82FHbGCtnAI50iGniyKSU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
propagatedBuildInputs = [
|
||||||
substituteInPlace setup.py --replace "requests==2.21.0" "requests"
|
click
|
||||||
substituteInPlace setup.py --replace "packaging==19.1" "packaging"
|
requests
|
||||||
'';
|
packaging
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ click requests packaging ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
pythonImportsCheck = [ "openwrt_luci_rpc" ];
|
||||||
description = ''
|
|
||||||
Python3 module for interacting with the OpenWrt Luci RPC interface.
|
meta = with lib; {
|
||||||
Supports 15.X & 17.X & 18.X or newer releases of OpenWrt.
|
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";
|
homepage = "https://github.com/fbradyirl/openwrt-luci-rpc";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
Loading…
Reference in New Issue
Block a user