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