mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
a8e35d0131
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.
43 lines
985 B
Nix
43 lines
985 B
Nix
{ lib, python3Packages, installShellFiles }:
|
|
|
|
let
|
|
pypkgs = python3Packages;
|
|
|
|
in
|
|
pypkgs.buildPythonApplication rec {
|
|
pname = "tmuxp";
|
|
version = "1.23.0";
|
|
|
|
src = pypkgs.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "Ix/43QFOa0kCP5xndszFGk0p12w/t/z+fVcYRIj9y0s=";
|
|
};
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
propagatedBuildInputs = with pypkgs; [
|
|
click
|
|
colorama
|
|
kaptan
|
|
libtmux
|
|
];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd tmuxp \
|
|
--bash <(_TMUXP_COMPLETE=bash_source $out/bin/tmuxp) \
|
|
--fish <(_TMUXP_COMPLETE=fish_source $out/bin/tmuxp) \
|
|
--zsh <(_TMUXP_COMPLETE=zsh_source $out/bin/tmuxp)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "tmux session manager";
|
|
homepage = "https://tmuxp.git-pull.com/";
|
|
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
};
|
|
}
|