commit ee47fa8cf92b2c3a3a31378e7adb19518224f0be
parent d8f42fdfa4b3c0761e2190ab88cee1e058aded3c
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Wed, 23 Jul 2025 02:56:11 +0400
Add mqtt-recorder
Diffstat:
2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -454,6 +454,7 @@ lib.makeScope newScope (
mqtt-launcher = callPackage ./mqtt/mqtt-launcher { };
mqtt-logger = callPackage ./mqtt/mqtt-logger { };
mqtt-proxy = callPackage ./mqtt/mqtt-proxy { };
+ mqtt-recorder = callPackage ./mqtt/mqtt-recorder { };
mqtt-shell = callPackage ./mqtt/mqtt-shell { };
mqtt-stats = callPackage ./mqtt/mqtt-stats { };
mqtt-stresser = callPackage ./mqtt/mqtt-stresser { };
diff --git a/pkgs/mqtt/mqtt-recorder/default.nix b/pkgs/mqtt/mqtt-recorder/default.nix
@@ -0,0 +1,32 @@
+{
+ lib,
+ fetchFromGitHub,
+ python3Packages,
+}:
+
+python3Packages.buildPythonApplication {
+ pname = "mqtt-recorder";
+ version = "1.4.0";
+ pyproject = true;
+
+ src = fetchFromGitHub {
+ owner = "rpdswtk";
+ repo = "mqtt_recorder";
+ rev = "0abaf0dd757a06f7f400c8d5e0cb93aa6cd4a761";
+ hash = "sha256-3oKqfOIK7zrfT8T5n7/+OD3zMMUZxY0IUpHIhzzHoaE=";
+ };
+
+ build-system = with python3Packages; [ setuptools ];
+
+ dependencies = with python3Packages; [
+ paho-mqtt
+ tqdm
+ ];
+
+ meta = {
+ description = "Simple cli tool for recording and replaying MQTT messages";
+ homepage = "https://github.com/rpdswtk/mqtt_recorder";
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.sikmir ];
+ };
+}