push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
influxdb,
jsonpath-ng,
paho-mqtt,
py-expression-eval,
pyaml,
pycron,
pytestCheckHook,
schema,
setuptools,
}:
buildPythonPackage rec {
pname = "mqtt2influxdb";
version = "1.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "hardwario";
repo = "bch-mqtt2influxdb";
tag = "v${version}";
hash = "sha256-YDgMoxnH4vCCa7b857U6iVBhYLxk8ZjytGziryn24bg=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "find_version('mqtt2influxdb', '__init__.py')," "'${version}',"
'';
build-system = [ setuptools ];
dependencies = [
influxdb
jsonpath-ng
paho-mqtt
py-expression-eval
pyaml
pycron
schema
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mqtt2influxdb" ];
enabledTestPaths = [ "tests/test.py" ];
meta = with lib; {
description = "Flexible MQTT to InfluxDB Bridge";
homepage = "https://github.com/hardwario/bch-mqtt2influxdb";
changelog = "https://github.com/hardwario/bch-mqtt2influxdb/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ cynerd ];
mainProgram = "mqtt2influxdb";
};
}