1{ lib
2, buildPythonPackage
3, twine
4, numpy
5, pytest
6, fetchPypi
7}:
8
9buildPythonPackage rec {
10 pname = "nagiosplugin";
11 version = "1.3.2";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1vr3zy0zfvbrqc4nf81zxv4gs2q82sv5sjamdm4573ld529mk2nv";
16 };
17
18 nativeBuildInputs = [ twine ];
19 checkInputs = [ pytest numpy ];
20
21 checkPhase = ''
22 # this test relies on who, which does not work in the sandbox
23 pytest -k "not test_check_users" tests/
24 '';
25
26 meta = with lib; {
27 description = "A Python class library which helps with writing Nagios (Icinga) compatible plugins";
28 homepage = "https://github.com/mpounsett/nagiosplugin";
29 license = licenses.zpl21;
30 maintainers = with maintainers; [ symphorien ];
31 };
32}