2023-05-25 14:07:31 +00:00
|
|
|
{ lib, python3Packages, fetchPypi, installShellFiles }:
|
2016-08-01 14:01:02 +00:00
|
|
|
|
2023-06-24 12:36:27 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-01-20 12:14:07 +00:00
|
|
|
pname = "tmuxp";
|
2023-06-21 12:16:41 +00:00
|
|
|
version = "1.28.1";
|
2016-08-01 14:01:02 +00:00
|
|
|
|
2023-05-25 14:07:31 +00:00
|
|
|
src = fetchPypi {
|
2018-01-20 12:14:07 +00:00
|
|
|
inherit pname version;
|
2023-06-21 12:16:41 +00:00
|
|
|
sha256 = "sha256-sNLqUyas6QY11eW/FhkqB6+u4MTqiY1ixvD3BN69Fic=";
|
2016-08-01 14:01:02 +00:00
|
|
|
};
|
|
|
|
|
2018-01-20 12:14:07 +00:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-06-21 12:16:41 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
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
|
|
|
click
|
|
|
|
colorama
|
|
|
|
kaptan
|
|
|
|
libtmux
|
2016-08-01 14:01:02 +00:00
|
|
|
];
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
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";
|
|
|
|
license = licenses.mit;
|
2021-06-30 03:41:25 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
2016-08-01 14:01:02 +00:00
|
|
|
};
|
|
|
|
}
|