pynagsystemd: init at 1.2.0

Co-Authored-By: Jon <jonringer@users.noreply.github.com>
This commit is contained in:
Symphorien Gibol 2019-12-29 12:00:00 +00:00 committed by Jon
parent dd478ddc36
commit b40fc3a56b
3 changed files with 25 additions and 2 deletions

View file

@ -15,10 +15,9 @@ buildPythonPackage rec {
sha256 = "1vr3zy0zfvbrqc4nf81zxv4gs2q82sv5sjamdm4573ld529mk2nv";
};
buildInputs = [ twine ];
nativeBuildInputs = [ twine ];
checkInputs = [ pytest numpy ];
doCheck = true;
checkPhase = ''
# this test relies on who, which does not work in the sandbox
pytest -k "not test_check_users" tests/

View file

@ -0,0 +1,22 @@
{ fetchFromGitHub, python3Packages, lib }:
python3Packages.buildPythonApplication rec {
pname = "pynagsystemd";
version = "1.2.0";
src = fetchFromGitHub {
owner = "kbytesys";
repo = pname;
rev = "v${version}";
sha256 = "1xjhkhdpmqa7ngcpcfhrkmj4cid2wla3fzgr04wvw672ysffv2vz";
};
propagatedBuildInputs = with python3Packages; [ nagiosplugin ];
meta = with lib; {
description = "Simple and easy nagios check for systemd status";
homepage = "https://github.com/kbytesys/pynagsystemd";
maintainers = with maintainers; [ symphorien ];
license = licenses.gpl2;
};
}

View file

@ -15469,6 +15469,8 @@ in
checkSSLCert = callPackage ../servers/monitoring/nagios/plugins/check_ssl_cert.nix { };
pynagsystemd = callPackage ../servers/monitoring/nagios/plugins/pynagsystemd.nix { };
neo4j = callPackage ../servers/nosql/neo4j { };
check-esxi-hardware = callPackage ../servers/monitoring/plugins/esxi.nix {};