2023-07-15 17:15:38 +00:00
|
|
|
{ lib, python3Packages, fetchPypi, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
let
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "tmuxp";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.47.0";
|
|
|
|
hash = "sha256-HYY6CEUPpZVvVK9kV4Ehw4wGk5YfIVSkZ0+qqf6Nz4c=";
|
2024-05-15 15:35:15 +00:00
|
|
|
in
|
|
|
|
python3Packages.buildPythonApplication {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2024-05-15 15:35:15 +00:00
|
|
|
inherit pname version hash;
|
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
|
|
|
colorama
|
|
|
|
libtmux
|
2024-05-15 15:35:15 +00:00
|
|
|
pyyaml
|
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
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ otavio ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "tmuxp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|