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