20 buildPythonPackage rec {
24 disabled = pythonOlder "3.6";
26 src = fetchFromGitHub {
30 sha256 = "sha256-FjzvFx+A4DS2XeKBZ2DGRqudvH22AUSQJnIxKs2O0AU=";
33 nativeBuildInputs = [ poetry-core ];
35 propagatedBuildInputs = [
38 ] ++ lib.optionals (pythonOlder "3.7") [
40 ] ++ lib.optionals (pythonOlder "3.9") [
48 disabledTests = lib.optionals stdenv.isDarwin [
49 # darwin console duplicates 3 of 4 lines
50 "test_rich_console_ex"
53 pythonImportsCheck = [ "rich" ];
56 inherit enrich httpie rich-rst textual;
60 description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal";
61 homepage = "https://github.com/Textualize/rich";
62 license = licenses.mit;
63 maintainers = with maintainers; [ ris jyooru ];