From 47ebd834dcfed3026fc329cf7f7911ab26a9a3b7 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Sun, 4 Aug 2024 11:12:46 -0500 Subject: [PATCH] python312Packages.textual: 0.72.0 -> 0.77.0 --- .../python-modules/textual/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/textual/default.nix b/pkgs/development/python-modules/textual/default.nix index 37aa589b29ea4b6..24e1887a569ea68 100644 --- a/pkgs/development/python-modules/textual/default.nix +++ b/pkgs/development/python-modules/textual/default.nix @@ -6,6 +6,7 @@ markdown-it-py, poetry-core, pytest-aiohttp, + pytest-xdist, pytestCheckHook, pythonOlder, rich, @@ -18,7 +19,7 @@ buildPythonPackage rec { pname = "textual"; - version = "0.72.0"; + version = "0.77.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -27,7 +28,7 @@ buildPythonPackage rec { owner = "Textualize"; repo = "textual"; rev = "refs/tags/v${version}"; - hash = "sha256-iNl9bos1GBLmHRvSgqYD8b6cptmmMktXkDXQbm3xMtc="; + hash = "sha256-7VvAC8s8OQ4EQ5PLu/H21U3k3+Icz9q6oNLxuWM1VjI="; }; build-system = [ poetry-core ]; @@ -39,15 +40,13 @@ buildPythonPackage rec { ] ++ markdown-it-py.optional-dependencies.plugins ++ markdown-it-py.optional-dependencies.linkify; optional-dependencies = { - syntax = [ - tree-sitter - tree-sitter-languages - ]; + syntax = [ tree-sitter ] ++ lib.optionals (tree-sitter-languages.meta.broken) [ tree-sitter-languages ]; }; nativeCheckInputs = [ jinja2 pytest-aiohttp + pytest-xdist pytestCheckHook syrupy time-machine @@ -68,6 +67,10 @@ buildPythonPackage rec { "test_language_binary_missing" ]; + # Some tests in groups require state from previous tests + # See https://github.com/Textualize/textual/issues/4924#issuecomment-2304889067 + pytestFlagsArray = [ "--dist=loadgroup" ]; + pythonImportsCheck = [ "textual" ]; __darwinAllowLocalNetworking = true;