python310Packages.pytest-emoji: init at 0.2.0

This commit is contained in:
Fabian Affolter 2023-05-01 23:29:00 +02:00
parent 0b9dd4a1b6
commit b7956895ee
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pytest-emoji";
version = "0.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hackebrot";
repo = "pytest-emoji";
rev = "refs/tags/${version}";
hash = "sha256-GuKBbIIODDnMi9YMX3zR4Jc3cbK+Zibj1ZeWvYkUY24=";
};
buildInputs = [
pytest
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytest_emoji"
];
disabledTests = [
# Test scompare CLI output
"test_emoji_disabled_by_default_verbose"
"test_emoji_enabled_verbose"
"test_emoji_enabled_custom_verbose"
];
meta = with lib; {
description = "A pytest plugin that adds emojis to test result report";
homepage = "https://github.com/hackebrot/pytest-emoji";
changelog = "https://github.com/hackebrot/pytest-emoji/releases/tag/0.2.0";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9332,6 +9332,8 @@ self: super: with self; {
pytest-dotenv = callPackage ../development/python-modules/pytest-dotenv { };
pytest-emoji = callPackage ../development/python-modules/pytest-emoji { };
pytest-env = callPackage ../development/python-modules/pytest-env { };
pytest-error-for-skips = callPackage ../development/python-modules/pytest-error-for-skips { };