python3Packages.victron-mqtt: init at 2026.1.8

New dependency for victro-vrm.
This commit is contained in:
Martin Weinelt
2026-02-01 17:40:47 +01:00
parent 7545292131
commit 1313780fc4
2 changed files with 62 additions and 0 deletions
@@ -0,0 +1,60 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
paho-mqtt,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
victron-vrm,
}:
buildPythonPackage (finalAttrs: {
pname = "victron-mqtt";
version = "2026.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "tomer-w";
repo = "victron_mqtt";
tag = "v${finalAttrs.version}";
hash = "sha256-KSfP7kZZzMPYa6HWlLS/jF6kJWyHX8SemA9bTPsI11w=";
};
build-system = [
hatchling
];
dependencies = [
paho-mqtt
];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
disabledTests = [
# requires local mqtt broker
"test_connect"
"test_create_full_raw_snapshot"
"test_devices_and_metrics"
"test_two_hubs_connect"
# network access
"test_connect_auth_failure"
];
pythonImportsCheck = [
"victron_mqtt"
];
meta = {
changelog = "https://github.com/tomer-w/victron_mqtt/releases/tag/${finalAttrs.src.tag}";
description = "Victron Venus MQTT client library documentation";
homepage = "https://github.com/tomer-w/victron_mqtt";
license = lib.licenses.mit;
inherit (victron-vrm.meta) maintainers;
};
})
+2
View File
@@ -20418,6 +20418,8 @@ self: super: with self; {
vharfbuzz = callPackage ../development/python-modules/vharfbuzz { };
victron-mqtt = callPackage ../development/python-modules/victron-mqtt { };
victron-vrm = callPackage ../development/python-modules/victron-vrm { };
videocr = callPackage ../development/python-modules/videocr { };