2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, influxdb
|
|
|
|
, jsonpath-ng
|
|
|
|
, paho-mqtt
|
|
|
|
, py-expression-eval
|
|
|
|
, pyaml
|
|
|
|
, pycron
|
|
|
|
, schema
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mqtt2influxdb";
|
|
|
|
version = "1.5.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hardwario";
|
|
|
|
repo = "bch-mqtt2influxdb";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "YDgMoxnH4vCCa7b857U6iVBhYLxk8ZjytGziryn24bg=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
influxdb
|
|
|
|
jsonpath-ng
|
|
|
|
paho-mqtt
|
|
|
|
py-expression-eval
|
|
|
|
pyaml
|
|
|
|
pycron
|
|
|
|
schema
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mqtt2influxdb" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/hardwario/bch-mqtt2influxdb";
|
|
|
|
description = "Flexible MQTT to InfluxDB Bridge";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mqtt2influxdb";
|
2023-08-04 22:07:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cynerd ];
|
|
|
|
};
|
|
|
|
}
|