nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.nagiosplugin: switch to pytestCheckHook

+26 -12
+26 -12
pkgs/development/python-modules/nagiosplugin/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , twine 4 - , numpy 5 - , pytest 6 3 , fetchPypi 4 + , numpy 5 + , pytestCheckHook 6 + , pythonOlder 7 + , twine 7 8 }: 8 9 9 10 buildPythonPackage rec { 10 11 pname = "nagiosplugin"; 11 12 version = "1.3.3"; 13 + format = "setuptools"; 14 + 15 + disabled = pythonOlder "3.7"; 12 16 13 17 src = fetchPypi { 14 18 inherit pname version; 15 - sha256 = "sha256-vOr67DWfAyOT3dVgrizI0WNhODPsY8k85xifhZBOU9Y="; 19 + hash = "sha256-vOr67DWfAyOT3dVgrizI0WNhODPsY8k85xifhZBOU9Y="; 16 20 }; 17 21 18 - nativeBuildInputs = [ twine ]; 19 - checkInputs = [ pytest numpy ]; 22 + nativeBuildInputs = [ 23 + twine 24 + ]; 20 25 21 - checkPhase = '' 22 - # this test relies on who, which does not work in the sandbox 23 - pytest -k "not test_check_users" tests/ 24 - ''; 26 + checkInputs = [ 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 + ]; 25 39 26 40 meta = with lib; { 27 - description = "A Python class library which helps with writing Nagios (Icinga) compatible plugins"; 28 - homepage = "https://github.com/mpounsett/nagiosplugin"; 41 + description = "Python class library which helps with writing Nagios (Icinga) compatible plugins"; 42 + homepage = "https://github.com/mpounsett/nagiosplugin"; 29 43 license = licenses.zpl21; 30 44 maintainers = with maintainers; [ symphorien ]; 31 45 };