mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
mqtt-exporter: init at 1.5.0 (#360486)
This commit is contained in:
commit
1c7406ae55
43
pkgs/by-name/mq/mqtt-exporter/package.nix
Normal file
43
pkgs/by-name/mq/mqtt-exporter/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "mqtt-exporter";
|
||||
version = "1.5.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kpetremann";
|
||||
repo = "mqtt-exporter";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-3gUAiujfBXJpVailx8cMmSJS7l69XpE4UGK/aebcQqY=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [ "prometheus-client" ];
|
||||
|
||||
build-system = with python3.pkgs; [ setuptools ];
|
||||
|
||||
dependencies = with python3.pkgs; [
|
||||
paho-mqtt_2
|
||||
prometheus-client
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python3.pkgs; [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "mqtt_exporter" ];
|
||||
|
||||
meta = {
|
||||
description = "Generic MQTT Prometheus exporter for IoT";
|
||||
homepage = "https://github.com/kpetremann/mqtt-exporter";
|
||||
changelog = "https://github.com/kpetremann/mqtt-exporter/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "mqtt-exporter";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user