1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 influxdb,
6 jsonpath-ng,
7 paho-mqtt,
8 py-expression-eval,
9 pyaml,
10 pycron,
11 schema,
12}:
13buildPythonPackage rec {
14 pname = "mqtt2influxdb";
15 version = "1.5.2";
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "hardwario";
20 repo = "bch-mqtt2influxdb";
21 rev = "v${version}";
22 sha256 = "YDgMoxnH4vCCa7b857U6iVBhYLxk8ZjytGziryn24bg=";
23 };
24
25 propagatedBuildInputs = [
26 influxdb
27 jsonpath-ng
28 paho-mqtt
29 py-expression-eval
30 pyaml
31 pycron
32 schema
33 ];
34
35 pythonImportsCheck = [ "mqtt2influxdb" ];
36
37 meta = with lib; {
38 homepage = "https://github.com/hardwario/bch-mqtt2influxdb";
39 description = "Flexible MQTT to InfluxDB Bridge";
40 mainProgram = "mqtt2influxdb";
41 platforms = platforms.linux;
42 license = licenses.mit;
43 maintainers = with maintainers; [ cynerd ];
44 };
45}