15 # optional-dependencies
30 buildPythonPackage rec {
35 disabled = pythonOlder "3.7";
37 src = fetchFromGitHub {
40 rev = "refs/tags/v${version}";
41 hash = "sha256-7LvmPrCpHfPEfJ1r8IFnQhYkBstvtIrWYhGwcchlc0s=";
44 nativeBuildInputs = [ poetry-core ];
46 propagatedBuildInputs = [
49 ] ++ lib.optionals (pythonOlder "3.9") [ typing-extensions ];
51 optional-dependencies = {
52 jupyter = [ ipywidgets ];
62 # pygments 2.16 compat
63 # https://github.com/Textualize/rich/issues/3088
65 "test_markdown_render"
66 "test_markdown_render"
68 "test_python_render_simple"
69 "test_python_render_simple_passing_lexer_instance"
70 "test_python_render_indent_guides"
72 "test_syntax_highlight_ranges"
75 pythonImportsCheck = [ "rich" ];
87 description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal";
88 homepage = "https://github.com/Textualize/rich";
89 changelog = "https://github.com/Textualize/rich/blob/v${version}/CHANGELOG.md";
90 license = licenses.mit;
91 maintainers = with maintainers; [ ris ];