depot/third_party/nixpkgs/pkgs/development/python-modules/openwrt-luci-rpc/default.nix
Default email d0d8e8fc71 Project import generated by Copybara.
GitOrigin-RevId: d3f7e969b9860fb80750147aeb56dab1c730e756
2021-03-23 19:22:30 +00:00

42 lines
935 B
Nix

{ lib
, buildPythonPackage
, click
, fetchPypi
, packaging
, pytestCheckHook
, requests
}:
buildPythonPackage rec {
pname = "openwrt-luci-rpc";
version = "1.1.11";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-DkitN+mwCZ14QEn2fTOqUrQTtoncR1ifP3WDSQ6qkkk=";
};
propagatedBuildInputs = [
click
requests
packaging
];
checkInputs = [
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 ];
};
}