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