diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2019-12-29 12:00:00 +0000 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-01-03 15:48:42 -0800 |
commit | b40fc3a56b51a00e91e016f74e68b5614789ac80 (patch) | |
tree | d255931686e147a92c3346eb11c51987df9cf70e /pkgs | |
parent | dd478ddc36f60600d380c31705558ab7e8f36aae (diff) | |
download | nixpkgs-b40fc3a56b51a00e91e016f74e68b5614789ac80.tar nixpkgs-b40fc3a56b51a00e91e016f74e68b5614789ac80.tar.gz nixpkgs-b40fc3a56b51a00e91e016f74e68b5614789ac80.tar.bz2 nixpkgs-b40fc3a56b51a00e91e016f74e68b5614789ac80.tar.lz nixpkgs-b40fc3a56b51a00e91e016f74e68b5614789ac80.tar.xz nixpkgs-b40fc3a56b51a00e91e016f74e68b5614789ac80.tar.zst nixpkgs-b40fc3a56b51a00e91e016f74e68b5614789ac80.zip |
pynagsystemd: init at 1.2.0
Co-Authored-By: Jon <jonringer@users.noreply.github.com>
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/nagiosplugin/default.nix | 3 | ||||
-rw-r--r-- | pkgs/servers/monitoring/nagios/plugins/pynagsystemd.nix | 22 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 25 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/nagiosplugin/default.nix b/pkgs/development/python-modules/nagiosplugin/default.nix index 9cb118a96d0..ef46e7ccafd 100644 --- a/pkgs/development/python-modules/nagiosplugin/default.nix +++ b/pkgs/development/python-modules/nagiosplugin/default.nix @@ -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/ diff --git a/pkgs/servers/monitoring/nagios/plugins/pynagsystemd.nix b/pkgs/servers/monitoring/nagios/plugins/pynagsystemd.nix new file mode 100644 index 00000000000..62f6bc96a52 --- /dev/null +++ b/pkgs/servers/monitoring/nagios/plugins/pynagsystemd.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0bdb858161e..34ddcfcdcbe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {}; |