Files
nixpkgs/pkgs/development/python-modules/openwrt-luci-rpc/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
965 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 = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ matt-snider ];
};
}