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 | dd478ddc36f60600d380c31705558ab7e8f36aae (patch) | |
tree | 7de028fdc8e032eee727895b2b16dbe9a9ea70fa /pkgs/development/python-modules/nagiosplugin | |
parent | 0b7b588de246397b6c5e717e68e7015e7a9a0766 (diff) | |
download | nixpkgs-dd478ddc36f60600d380c31705558ab7e8f36aae.tar nixpkgs-dd478ddc36f60600d380c31705558ab7e8f36aae.tar.gz nixpkgs-dd478ddc36f60600d380c31705558ab7e8f36aae.tar.bz2 nixpkgs-dd478ddc36f60600d380c31705558ab7e8f36aae.tar.lz nixpkgs-dd478ddc36f60600d380c31705558ab7e8f36aae.tar.xz nixpkgs-dd478ddc36f60600d380c31705558ab7e8f36aae.tar.zst nixpkgs-dd478ddc36f60600d380c31705558ab7e8f36aae.zip |
pythonPackages.nagiosplugin: init at 1.3.2
Diffstat (limited to 'pkgs/development/python-modules/nagiosplugin')
-rw-r--r-- | pkgs/development/python-modules/nagiosplugin/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nagiosplugin/default.nix b/pkgs/development/python-modules/nagiosplugin/default.nix new file mode 100644 index 00000000000..9cb118a96d0 --- /dev/null +++ b/pkgs/development/python-modules/nagiosplugin/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, twine +, numpy +, pytest +, fetchPypi +}: + +buildPythonPackage rec { + pname = "nagiosplugin"; + version = "1.3.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1vr3zy0zfvbrqc4nf81zxv4gs2q82sv5sjamdm4573ld529mk2nv"; + }; + + buildInputs = [ 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/ + ''; + + meta = with lib; { + description = "A Python class library which helps with writing Nagios (Icinga) compatible plugins"; + homepage = https://github.com/mpounsett/nagiosplugin; + license = licenses.zpl21; + maintainers = with maintainers; [ symphorien ]; + }; +} |