1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 numpy,
6 pytestCheckHook,
7 pythonOlder,
8 twine,
9}:
10
11buildPythonPackage rec {
12 pname = "nagiosplugin";
13 version = "1.4.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-IxabBKI8StRBnvm3Zm1AH0jfMkez38P4dL4sFP0ttAE=";
21 };
22
23 nativeBuildInputs = [ twine ];
24
25 nativeCheckInputs = [
26 numpy
27 pytestCheckHook
28 ];
29
30 disabledTests = [
31 # Test relies on who, which does not work in the sandbox
32 "test_check_users"
33 ];
34
35 pythonImportsCheck = [ "nagiosplugin" ];
36
37 meta = with lib; {
38 description = "Python class library which helps with writing Nagios (Icinga) compatible plugins";
39 homepage = "https://github.com/mpounsett/nagiosplugin";
40 license = licenses.zpl21;
41 maintainers = with maintainers; [ symphorien ];
42 };
43}