evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / tm / tmuxp / package.nix
blob6964cb5ace4e97b7ae5c4cb3aa93195086719915
1 { lib, python3Packages, fetchPypi, installShellFiles }:
3 let
4   pname = "tmuxp";
5   version = "1.47.0";
6   hash = "sha256-HYY6CEUPpZVvVK9kV4Ehw4wGk5YfIVSkZ0+qqf6Nz4c=";
7 in
8 python3Packages.buildPythonApplication {
9   inherit pname version;
10   pyproject = true;
12   src = fetchPypi {
13     inherit pname version hash;
14   };
16   nativeBuildInputs = [
17     python3Packages.poetry-core
18     python3Packages.shtab
19     installShellFiles
20   ];
22   propagatedBuildInputs = with python3Packages; [
23     colorama
24     libtmux
25     pyyaml
26   ];
28   # No tests in archive
29   doCheck = false;
31   postInstall = ''
32     installShellCompletion --cmd tmuxp \
33       --bash <(shtab --shell=bash -u tmuxp.cli.create_parser) \
34       --zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser)
35   '';
37   meta = {
38     description = "tmux session manager";
39     homepage = "https://tmuxp.git-pull.com/";
40     changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
41     license = lib.licenses.mit;
42     maintainers = with lib.maintainers; [ otavio ];
43     mainProgram = "tmuxp";
44   };