python312Packages.databricks-sdk: 0.41.0 -> 0.43.0 (#380426)
[NixPkgs.git] / pkgs / by-name / mq / mqtt-exporter / package.nix
blob47464ffe1f9a2791ca6eabf0a8c8f0ab4989dd23
2   lib,
3   python3,
4   fetchFromGitHub,
5 }:
7 python3.pkgs.buildPythonApplication rec {
8   pname = "mqtt-exporter";
9   version = "1.6.1";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "kpetremann";
14     repo = "mqtt-exporter";
15     tag = "v${version}";
16     hash = "sha256-XTgnD3H48KKclPhfmBPiWQPaJkfiBxjq2YQusOPLFJQ=";
17   };
19   pythonRelaxDeps = [ "prometheus-client" ];
21   build-system = with python3.pkgs; [ setuptools ];
23   dependencies = with python3.pkgs; [
24     paho-mqtt
25     prometheus-client
26   ];
28   nativeCheckInputs = with python3.pkgs; [
29     pytest-mock
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [ "mqtt_exporter" ];
35   meta = {
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";
42   };