mqtt-randompub: init at 0.2.2 (#360094)

This commit is contained in:
Fabian Affolter 2024-11-30 10:05:07 +01:00 committed by GitHub
commit 972f716b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,36 @@
{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "mqtt-randompub";
version = "0.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "fabaff";
repo = "mqtt-randompub";
rev = "refs/tags/${version}";
hash = "sha256-vAFEVlw9reRP+4Qwywv+cP27SU1c3seL3Z+b/YfUdl8=";
};
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [ paho-mqtt ];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "mqtt_randompub" ];
meta = {
description = "Tool that sends random MQTT messages to random topics";
homepage = "https://github.com/fabaff/mqtt-randompub";
changelog = "https://github.com/fabaff/mqtt-randompub/blob/${src.rev}/ChangeLog";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "mqtt-randompub";
};
}