15 # optional-dependencies
31 buildPythonPackage rec {
36 disabled = pythonOlder "3.7";
38 src = fetchFromGitHub {
41 rev = "refs/tags/v${version}";
42 hash = "sha256-k+a64GDGzRDprvJz7s9Sm4z8jDV5TZ+CZLMgXKXXonM=";
45 nativeBuildInputs = [ poetry-core ];
47 propagatedBuildInputs = [
50 ] ++ lib.optionals (pythonOlder "3.9") [ typing-extensions ];
52 optional-dependencies = {
53 jupyter = [ ipywidgets ];
64 # pygments 2.16 compat
65 # https://github.com/Textualize/rich/issues/3088
67 "test_markdown_render"
68 "test_markdown_render"
70 "test_python_render_simple"
71 "test_python_render_simple_passing_lexer_instance"
72 "test_python_render_indent_guides"
74 "test_syntax_highlight_ranges"
77 pythonImportsCheck = [ "rich" ];
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 ];