mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
603e0a0982
Fixes: #297760. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ lib, python3Packages, fetchPypi, installShellFiles }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "tmuxp";
|
|
version = "1.43.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-SbMZpMrcOGNzEqa/2x0OtgC2/fhKp8Prs8Hspy3I3tA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python3Packages.poetry-core
|
|
python3Packages.shtab
|
|
installShellFiles
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
click
|
|
colorama
|
|
kaptan
|
|
libtmux
|
|
];
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd tmuxp \
|
|
--bash <(shtab --shell=bash -u tmuxp.cli.create_parser) \
|
|
--zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser)
|
|
'';
|
|
|
|
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 otavio ];
|
|
mainProgram = "tmuxp";
|
|
};
|
|
}
|