From c4c744db91b700d145a261cee2dbee9a2fc5a0a1 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 31 Jan 2023 22:50:35 -0300 Subject: [PATCH] python3Packages.libtmux: 0.18.0 -> 0.21.0 Signed-off-by: Otavio Salvador --- .../python-modules/libtmux/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/libtmux/default.nix b/pkgs/development/python-modules/libtmux/default.nix index cf9e72c110d7..aa026a98eb32 100644 --- a/pkgs/development/python-modules/libtmux/default.nix +++ b/pkgs/development/python-modules/libtmux/default.nix @@ -7,18 +7,19 @@ , pytestCheckHook , procps , tmux +, ncurses }: buildPythonPackage rec { pname = "libtmux"; - version = "0.18.1"; + version = "0.21.0"; format = "pyproject"; src = fetchFromGitHub { owner = "tmux-python"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-OhNyJcnxjbyP/Kpt70qLv3ZtZvXXVTWEMcjv/pa50/4="; + hash = "sha256-nZPVS3jNz2e2LTlWiSz1fN7MzqJs/CqtAt6UVZaPPTY="; }; postPatch = '' @@ -32,14 +33,20 @@ buildPythonPackage rec { nativeCheckInputs = [ procps tmux + ncurses pytest-rerunfailures pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ] ++ lib.optionals stdenv.isDarwin [ - "--ignore=tests/test_test.py" + pytestFlagsArray = [ "tests" ]; + + disabledTests = [ + # Fail with: 'no server running on /tmp/tmux-1000/libtmux_test8sorutj1'. + "test_new_session_width_height" + ]; + + disabledTestPaths = lib.optionals stdenv.isDarwin [ + "test_test.py" ]; pythonImportsCheck = [ "libtmux" ];