1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-emoji"; 12 version = "0.2.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "hackebrot"; 19 repo = "pytest-emoji"; 20 tag = version; 21 hash = "sha256-GuKBbIIODDnMi9YMX3zR4Jc3cbK+Zibj1ZeWvYkUY24="; 22 }; 23 24 buildInputs = [ pytest ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "pytest_emoji" ]; 29 30 disabledTests = [ 31 # Test scompare CLI output 32 "test_emoji_disabled_by_default_verbose" 33 "test_emoji_enabled_verbose" 34 "test_emoji_enabled_custom_verbose" 35 ]; 36 37 meta = with lib; { 38 description = "Pytest plugin that adds emojis to test result report"; 39 homepage = "https://github.com/hackebrot/pytest-emoji"; 40 changelog = "https://github.com/hackebrot/pytest-emoji/releases/tag/0.2.0"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}