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