nixpkgs/pkgs/by-name/tf/tftui/package.nix
Fernando Rodrigues 05580f4b44
treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00

56 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
makeWrapper,
python3,
enableUsageTracking ? false,
}:
python3.pkgs.buildPythonApplication rec {
pname = "tftui";
version = "0.13.5";
pyproject = true;
src = fetchFromGitHub {
owner = "idoavrah";
repo = "terraform-tui";
tag = "v${version}";
hash = "sha256-xOlPuPVwfVT7jfBJPqZ5FbOs80HE0k2ZqcA+Jcxh9p4=";
};
pythonRelaxDeps = [
"textual"
];
nativeBuildInputs = with python3.pkgs; [
makeWrapper
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
posthog
pyperclip
requests
rich
textual
];
pythonImportsCheck = [
"tftui"
];
postInstall = lib.optionalString (!enableUsageTracking) ''
wrapProgram $out/bin/tftui \
--add-flags "--disable-usage-tracking"
'';
meta = with lib; {
description = "Textual UI to view and interact with Terraform state";
homepage = "https://github.com/idoavrah/terraform-tui";
changelog = "https://github.com/idoavrah/terraform-tui/releases/tag/v${version}";
license = licenses.asl20;
teams = [ teams.bitnomial ];
mainProgram = "tftui";
};
}