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

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

44 lines
1012 B
Nix
Raw Normal View History

{ lib, python3Packages, fetchPypi, installShellFiles }:
2016-08-01 14:01:02 +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
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 = [
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
click
colorama
kaptan
libtmux
2016-08-01 14:01:02 +00:00
];
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 = with lib; {
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 = licenses.mit;
2021-06-30 03:41:25 +00:00
maintainers = with maintainers; [ peterhoeg ];
2016-08-01 14:01:02 +00:00
};
}