mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-28 21:15:57 +00:00
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
influxdb,
|
|
jsonpath-ng,
|
|
paho-mqtt,
|
|
py-expression-eval,
|
|
pyaml,
|
|
pycron,
|
|
pytestCheckHook,
|
|
schema,
|
|
hatchling,
|
|
click,
|
|
influxdb3-python,
|
|
pydantic,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mqtt2influxdb";
|
|
version = "2.0.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hardwario";
|
|
repo = "bch-mqtt2influxdb";
|
|
tag = "v${version}";
|
|
hash = "sha256-DS1k3JcTUK0yXRkJSFMeIZHSXpiIgSXJPZb3+72Wqko=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
influxdb
|
|
jsonpath-ng
|
|
paho-mqtt
|
|
py-expression-eval
|
|
pyaml
|
|
pycron
|
|
schema
|
|
click
|
|
influxdb3-python
|
|
pydantic
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "mqtt2influxdb" ];
|
|
|
|
meta = {
|
|
description = "Flexible MQTT to InfluxDB Bridge";
|
|
homepage = "https://github.com/hardwario/bch-mqtt2influxdb";
|
|
changelog = "https://github.com/hardwario/bch-mqtt2influxdb/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ cynerd ];
|
|
mainProgram = "mqtt2influxdb";
|
|
};
|
|
}
|