Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytest-emoji / default.nix
blob1700c34fb37a6e79f2c9011826dfbcd53d85a96b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "pytest-emoji";
11   version = "0.2.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "hackebrot";
18     repo = "pytest-emoji";
19     rev = "refs/tags/${version}";
20     hash = "sha256-GuKBbIIODDnMi9YMX3zR4Jc3cbK+Zibj1ZeWvYkUY24=";
21   };
23   buildInputs = [
24     pytest
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "pytest_emoji"
33   ];
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   ];
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   };