python3Packages.victron-mqtt: init at 2026.1.8
New dependency for victro-vrm.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user