2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3Packages, fetchPypi, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tmuxp";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.29.0";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-MiXG4MVzomyc4LjovPsvhmPngtJv85s6Ypo/Cm2Whho=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
python3Packages.poetry-core
|
|
|
|
python3Packages.shtab
|
|
|
|
installShellFiles
|
|
|
|
];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-07-03 03:11:41 +00:00
|
|
|
click
|
|
|
|
colorama
|
|
|
|
kaptan
|
|
|
|
libtmux
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd tmuxp \
|
2023-07-15 17:15:38 +00:00
|
|
|
--bash <(shtab --shell=bash -u tmuxp.cli.create_parser) \
|
|
|
|
--zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser)
|
2022-08-21 13:32:41 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "tmux session manager";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://tmuxp.git-pull.com/";
|
2022-08-21 13:32:41 +00:00
|
|
|
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
|
|
|
|
license = licenses.mit;
|
2021-07-03 03:11:41 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|