Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "check-systemd";
|
|
version = "5.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Josef-Friedrich";
|
|
repo = "check_systemd";
|
|
tag = "v${version}";
|
|
hash = "sha256-i9lMF8SZwTxVCQaHQcEWqdKiOQ4ghcp5H/S+frfZXRw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace tests/test_argparse.py \
|
|
--replace-fail "./check_systemd.py" "check_systemd"
|
|
'';
|
|
|
|
build-system = with python3Packages; [
|
|
poetry-core
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
nagiosplugin
|
|
];
|
|
|
|
# needs to be able to run check_systemd from PATH
|
|
preCheck = ''
|
|
export PATH=$PATH:$out/bin
|
|
'';
|
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/Josef-Friedrich/check_systemd/releases";
|
|
description = "Nagios / Icinga monitoring plugin to check systemd for failed units";
|
|
homepage = "https://github.com/Josef-Friedrich/check_systemd";
|
|
license = lib.licenses.lgpl2Only;
|
|
mainProgram = "check_systemd";
|
|
maintainers = with lib.maintainers; [ symphorien ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|