2023-05-25 14:07:31 +00:00
|
|
|
{ lib, python3Packages, fetchPypi, installShellFiles }:
|
2016-08-01 14:01:02 +00:00
|
|
|
|
2024-04-27 16:58:52 +00:00
|
|
|
let
|
2018-01-20 12:14:07 +00:00
|
|
|
pname = "tmuxp";
|
2024-04-15 11:19:55 +00:00
|
|
|
version = "1.46.0";
|
2024-04-27 16:58:52 +00:00
|
|
|
hash = "sha256-+aXpsB4mjw9sZLalv3knW8okP+mh2P/nbZCiCwa3UBU=";
|
|
|
|
in
|
|
|
|
python3Packages.buildPythonApplication {
|
|
|
|
inherit pname version;
|
2024-02-26 04:20:00 +00:00
|
|
|
pyproject = true;
|
2016-08-01 14:01:02 +00:00
|
|
|
|
2023-05-25 14:07:31 +00:00
|
|
|
src = fetchPypi {
|
2024-04-27 16:58:52 +00:00
|
|
|
inherit pname version hash;
|
2016-08-01 14:01:02 +00:00
|
|
|
};
|
|
|
|
|
2023-06-21 12:16:41 +00:00
|
|
|
nativeBuildInputs = [
|
2023-06-24 12:36:27 +00:00
|
|
|
python3Packages.poetry-core
|
|
|
|
python3Packages.shtab
|
2023-06-21 12:16:41 +00:00
|
|
|
installShellFiles
|
|
|
|
];
|
2022-08-13 04:45:00 +00:00
|
|
|
|
2023-06-24 12:36:27 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-06-30 03:41:25 +00:00
|
|
|
colorama
|
|
|
|
libtmux
|
2024-04-27 14:46:01 +00:00
|
|
|
pyyaml
|
2016-08-01 14:01:02 +00:00
|
|
|
];
|
|
|
|
|
2023-08-29 17:39:27 +00:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-13 04:45:00 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd tmuxp \
|
2023-06-24 00:34:51 +00:00
|
|
|
--bash <(shtab --shell=bash -u tmuxp.cli.create_parser) \
|
|
|
|
--zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser)
|
2022-08-13 04:45:00 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-27 16:58:52 +00:00
|
|
|
meta = {
|
2022-08-13 04:45:00 +00:00
|
|
|
description = "tmux session manager";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tmuxp.git-pull.com/";
|
2022-08-13 04:45:00 +00:00
|
|
|
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
|
2024-04-27 16:58:52 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-04-27 16:59:37 +00:00
|
|
|
maintainers = with lib.maintainers; [ otavio ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "tmuxp";
|
2016-08-01 14:01:02 +00:00
|
|
|
};
|
|
|
|
}
|