From a8e35d013165b27eea9f2c7befb71e7ac6d8b7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Erts=C3=A5s?= Date: Fri, 20 Jan 2023 09:48:28 +0100 Subject: [PATCH] tmuxp: 1.12.1 -> 1.23.0 tmuxp 1.12.1 depends on a libtmux where you can import which from the library. This has been changed in libtmux, and we now need to use shutil.which to avoid the error: ImportError: cannot import name 'which' from 'libtmux.common' Updating the package fixes this issue. --- pkgs/tools/misc/tmuxp/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/misc/tmuxp/default.nix b/pkgs/tools/misc/tmuxp/default.nix index 768e4d33e3d..1b21a4d6029 100644 --- a/pkgs/tools/misc/tmuxp/default.nix +++ b/pkgs/tools/misc/tmuxp/default.nix @@ -6,18 +6,13 @@ let in pypkgs.buildPythonApplication rec { pname = "tmuxp"; - version = "1.12.1"; + version = "1.23.0"; src = pypkgs.fetchPypi { inherit pname version; - sha256 = "078624c5ac7aa4142735f856fadb9281fcebb10e6b98d1be2b2f2bbd106613b9"; + sha256 = "Ix/43QFOa0kCP5xndszFGk0p12w/t/z+fVcYRIj9y0s="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "libtmux>=0.12.0,<0.13.0" "libtmux" - ''; - # No tests in archive doCheck = false;