nixpkgs/pkgs/by-name/tm/tmuxp/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

46 lines
1.0 KiB
Nix

{ lib, python3Packages, fetchPypi, installShellFiles }:
let
pname = "tmuxp";
version = "1.47.0";
hash = "sha256-HYY6CEUPpZVvVK9kV4Ehw4wGk5YfIVSkZ0+qqf6Nz4c=";
in
python3Packages.buildPythonApplication {
inherit pname version;
pyproject = true;
src = fetchPypi {
inherit pname version hash;
};
nativeBuildInputs = [
python3Packages.poetry-core
python3Packages.shtab
installShellFiles
];
propagatedBuildInputs = with python3Packages; [
colorama
libtmux
pyyaml
];
# No tests in archive
doCheck = false;
postInstall = ''
installShellCompletion --cmd tmuxp \
--bash <(shtab --shell=bash -u tmuxp.cli.create_parser) \
--zsh <(shtab --shell=zsh -u tmuxp.cli.create_parser)
'';
meta = {
description = "tmux session manager";
homepage = "https://tmuxp.git-pull.com/";
changelog = "https://github.com/tmux-python/tmuxp/raw/v${version}/CHANGES";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ otavio ];
mainProgram = "tmuxp";
};
}