2024-09-24 12:33:51 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3,
|
|
|
|
fetchFromGitHub,
|
2024-04-13 23:40:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "blackbox-websocket-exporter";
|
|
|
|
version = "unstable-2021-12-15";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smohsensh";
|
|
|
|
repo = "blackbox-websocket-exporter";
|
|
|
|
rev = "6f9f32396f740fe606bf1b0118a27ad5caa3d9a6";
|
|
|
|
hash = "sha256-+G7xw5631TllDGNzVK9swbSNfVu4r4glbYIblEa0WqA=";
|
|
|
|
};
|
|
|
|
|
2024-06-09 15:27:25 +02:00
|
|
|
patches = [
|
|
|
|
./patch
|
|
|
|
];
|
|
|
|
|
2024-04-13 23:40:41 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.setuptools
|
|
|
|
python3.pkgs.wheel
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
prometheus-client
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Blackbox Websocket Uptime Exporter for Prometheus";
|
|
|
|
homepage = "https://github.com/smohsensh/blackbox-websocket-exporter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
mainProgram = "websocket_exporter";
|
|
|
|
};
|
|
|
|
}
|