Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
967 B
Nix
43 lines
967 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
fetchPypi,
|
|
packaging,
|
|
pytestCheckHook,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openwrt-luci-rpc";
|
|
version = "1.1.17";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-RFZCnQTDs3vre0qbedIEnng7lGo3Ikp0Bw4+7sbPRJk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
requests
|
|
packaging
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "openwrt_luci_rpc" ];
|
|
|
|
meta = with lib; {
|
|
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";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ matt-snider ];
|
|
};
|
|
}
|