14 # optional-dependencies
29 buildPythonPackage rec {
34 disabled = pythonOlder "3.7";
36 src = fetchFromGitHub {
39 rev = "refs/tags/v${version}";
40 hash = "sha256-7LvmPrCpHfPEfJ1r8IFnQhYkBstvtIrWYhGwcchlc0s=";
47 propagatedBuildInputs = [
50 ] ++ lib.optionals (pythonOlder "3.9") [
54 passthru.optional-dependencies = {
67 # pygments 2.16 compat
68 # https://github.com/Textualize/rich/issues/3088
70 "test_markdown_render"
71 "test_markdown_render"
73 "test_python_render_simple"
74 "test_python_render_simple_passing_lexer_instance"
75 "test_python_render_indent_guides"
77 "test_syntax_highlight_ranges"
80 pythonImportsCheck = [
85 inherit enrich httpie rich-rst textual;
89 description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal";
90 homepage = "https://github.com/Textualize/rich";
91 changelog = "https://github.com/Textualize/rich/blob/v${version}/CHANGELOG.md";
92 license = licenses.mit;
93 maintainers = with maintainers; [ ris joelkoen ];