nixpkgs/pkgs/tools/misc/tmuxp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, python3Packages, fetchPypi, installShellFiles }:
2016-08-01 14:01:02 +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";
hash = "sha256-+aXpsB4mjw9sZLalv3knW8okP+mh2P/nbZCiCwa3UBU=";
in
python3Packages.buildPythonApplication {
inherit pname version;
pyproject = true;
2016-08-01 14:01:02 +00:00
src = fetchPypi {
inherit pname version hash;
2016-08-01 14:01:02 +00:00
};
2023-06-21 12:16:41 +00:00
nativeBuildInputs = [
python3Packages.poetry-core
python3Packages.shtab
2023-06-21 12:16:41 +00:00
installShellFiles
];
2022-08-13 04:45:00 +00:00
propagatedBuildInputs = with python3Packages; [
2021-06-30 03:41:25 +00:00
colorama
libtmux
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 \
--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
'';
meta = {
2022-08-13 04:45:00 +00:00
description = "tmux session manager";
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ otavio ];
2023-11-27 01:17:53 +00:00
mainProgram = "tmuxp";
2016-08-01 14:01:02 +00:00
};
}