From 09c67a9eb2ebc6568fbaec3975f6fb0fb69184fe Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 14 Feb 2025 12:03:00 +0100 Subject: [PATCH] python312Packages.textual: cleanup --- .../python-modules/textual/default.nix | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/textual/default.nix b/pkgs/development/python-modules/textual/default.nix index d730ddc3f23c..7f70b2b6b5bd 100644 --- a/pkgs/development/python-modules/textual/default.nix +++ b/pkgs/development/python-modules/textual/default.nix @@ -1,22 +1,29 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, - jinja2, + + # build-system + poetry-core, + + # dependencies markdown-it-py, platformdirs, - poetry-core, + rich, + typing-extensions, + + # optional-dependencies + tree-sitter, + tree-sitter-languages, + + # tests + jinja2, pytest-aiohttp, pytest-xdist, pytestCheckHook, - pythonAtLeast, - rich, syrupy, time-machine, - tree-sitter, - tree-sitter-languages, - typing-extensions, + pythonAtLeast, }: buildPythonPackage rec { @@ -35,8 +42,8 @@ buildPythonPackage rec { dependencies = [ - platformdirs markdown-it-py + platformdirs rich typing-extensions ] @@ -63,7 +70,7 @@ buildPythonPackage rec { # Snapshot tests require syrupy<4 "tests/snapshot_tests/test_snapshots.py" - # Flaky + # Flaky: https://github.com/Textualize/textual/issues/5511 # RuntimeError: There is no current event loop in thread 'MainThread'. "tests/test_focus.py" ];