From dd478ddc36f60600d380c31705558ab7e8f36aae Mon Sep 17 00:00:00 2001 From: Symphorien Gibol Date: Sun, 29 Dec 2019 12:00:00 +0000 Subject: [PATCH] pythonPackages.nagiosplugin: init at 1.3.2 --- .../python-modules/nagiosplugin/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/nagiosplugin/default.nix diff --git a/pkgs/development/python-modules/nagiosplugin/default.nix b/pkgs/development/python-modules/nagiosplugin/default.nix new file mode 100644 index 000000000000..9cb118a96d0f --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fa26248c68fc..e7b1c4d54686 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -842,6 +842,8 @@ in { mwoauth = callPackage ../development/python-modules/mwoauth { }; + nagiosplugin = callPackage ../development/python-modules/nagiosplugin { }; + nanomsg-python = callPackage ../development/python-modules/nanomsg-python { inherit (pkgs) nanomsg; }; nbsmoke = callPackage ../development/python-modules/nbsmoke { };