From b7956895ee73310cb88dc059a72d52ccde386854 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 May 2023 23:29:00 +0200 Subject: [PATCH] python310Packages.pytest-emoji: init at 0.2.0 --- .../python-modules/pytest-emoji/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/pytest-emoji/default.nix diff --git a/pkgs/development/python-modules/pytest-emoji/default.nix b/pkgs/development/python-modules/pytest-emoji/default.nix new file mode 100644 index 000000000000..1700c34fb37a --- /dev/null +++ b/pkgs/development/python-modules/pytest-emoji/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3f1f14656478..32aadc2fc053 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };