depot/third_party/nixpkgs/pkgs/development/python-modules/nagiosplugin/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

46 lines
867 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, numpy
, pytestCheckHook
, pythonOlder
, twine
}:
buildPythonPackage rec {
pname = "nagiosplugin";
version = "1.3.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-vOr67DWfAyOT3dVgrizI0WNhODPsY8k85xifhZBOU9Y=";
};
nativeBuildInputs = [
twine
];
checkInputs = [
numpy
pytestCheckHook
];
disabledTests = [
# Test relies on who, which does not work in the sandbox
"test_check_users"
];
pythonImportsCheck = [
"nagiosplugin"
];
meta = with lib; {
description = "Python class library which helps with writing Nagios (Icinga) compatible plugins";
homepage = "https://github.com/mpounsett/nagiosplugin";
license = licenses.zpl21;
maintainers = with maintainers; [ symphorien ];
};
}