18 tree-sitter-languages,
22 buildPythonPackage rec {
27 disabled = pythonOlder "3.8";
29 src = fetchFromGitHub {
33 hash = "sha256-3pNUDkkq9X3W9DdWp4M4h4ddHN+GzUxLCFNJJdAtRJM=";
36 build-system = [ poetry-core ];
45 ++ markdown-it-py.optional-dependencies.plugins
46 ++ markdown-it-py.optional-dependencies.linkify;
48 optional-dependencies = {
51 ] ++ lib.optionals (!tree-sitter-languages.meta.broken) [ tree-sitter-languages ];
65 # Snapshot tests require syrupy<4
66 "tests/snapshot_tests/test_snapshots.py"
72 "test_textual_env_var"
74 # Requirements for tests are not quite ready
75 "test_register_language"
77 # Requires python bindings for tree-sitter languages
78 # https://github.com/Textualize/textual/issues/5449
79 "test_setting_unknown_language"
80 "test_update_highlight_query"
82 ++ lib.optionals (pythonAtLeast "3.13") [
83 # https://github.com/Textualize/textual/issues/5327
85 "test_cursor_page_down"
88 # Some tests in groups require state from previous tests
89 # See https://github.com/Textualize/textual/issues/4924#issuecomment-2304889067
90 pytestFlagsArray = [ "--dist=loadgroup" ];
92 pythonImportsCheck = [ "textual" ];
94 __darwinAllowLocalNetworking = true;
97 description = "TUI framework for Python inspired by modern web development";
98 homepage = "https://github.com/Textualize/textual";
99 changelog = "https://github.com/Textualize/textual/releases/tag/v${version}";
100 license = licenses.mit;