depot/pkgs/servers/monitoring/nagios-plugins/openbsd_snmp3_check/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

41 lines
1.1 KiB
Nix

{
fetchFromGitHub,
lib,
nix-update-script,
openbsd_snmp3_check,
python3Packages,
testers,
}:
python3Packages.buildPythonApplication rec {
pname = "openbsd_snmp3_check";
version = "0.55";
pyproject = false;
src = fetchFromGitHub {
owner = "alexander-naumov";
repo = "openbsd_snmp3_check";
rev = "v${version}";
hash = "sha256-qDYANMvQU72f9wz8os7S1PfBH08AAqhtWLHVuSmkub4=";
};
postInstall = ''
install -Dm755 openbsd_snmp3.py $out/bin/openbsd_snmp3.py
'';
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = openbsd_snmp3_check;
};
};
meta = with lib; {
changelog = "https://github.com/alexander-naumov/openbsd_snmp3_check/releases/tag/v${version}";
description = "SNMP v3 check for OpenBSD systems state monitoring";
homepage = "https://github.com/alexander-naumov/openbsd_snmp3_check";
license = with licenses; [ bsd3 ];
platforms = platforms.unix;
maintainers = with maintainers; [ jwillikers ];
mainProgram = "openbsd_snmp3.py";
};
}