mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
paho-mqtt,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
victron-vrm,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "victron-mqtt";
|
|
version = "2026.6.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomer-w";
|
|
repo = "victron_mqtt";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-0RMXl9T9Mglmg1R4rdhfYp/dhgRh1JJPmMeLOtV2/9E=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|