7 python3.pkgs.buildPythonApplication rec {
8 pname = "mqtt-exporter";
12 src = fetchFromGitHub {
14 repo = "mqtt-exporter";
16 hash = "sha256-XTgnD3H48KKclPhfmBPiWQPaJkfiBxjq2YQusOPLFJQ=";
19 pythonRelaxDeps = [ "prometheus-client" ];
21 build-system = with python3.pkgs; [ setuptools ];
23 dependencies = with python3.pkgs; [
28 nativeCheckInputs = with python3.pkgs; [
33 pythonImportsCheck = [ "mqtt_exporter" ];
36 description = "Generic MQTT Prometheus exporter for IoT";
37 homepage = "https://github.com/kpetremann/mqtt-exporter";
38 changelog = "https://github.com/kpetremann/mqtt-exporter/releases/tag/v${version}";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ fab ];
41 mainProgram = "mqtt-exporter";