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