mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #280430 from cdepillabout/terraform-tui
tftui: init at 0.12.4
This commit is contained in:
commit
d27d5fb5d9
54
pkgs/applications/networking/cluster/tftui/default.nix
Normal file
54
pkgs/applications/networking/cluster/tftui/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, makeWrapper
|
||||
, poetry-core
|
||||
, posthog
|
||||
, pyperclip
|
||||
, requests
|
||||
, rich
|
||||
, textual
|
||||
, enableUsageTracking ? false
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "tftui";
|
||||
version = "0.12.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-E4Y0qA7SooMlHh+oSFUl1hfblpirr/Jdb1C2fqU43t0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
posthog
|
||||
pyperclip
|
||||
requests
|
||||
rich
|
||||
textual
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
poetry-core
|
||||
];
|
||||
|
||||
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";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; teams.bitnomial.members;
|
||||
mainProgram = "tftui";
|
||||
};
|
||||
}
|
@ -41145,6 +41145,8 @@ with pkgs;
|
||||
|
||||
tfswitch = callPackage ../applications/networking/cluster/tfswitch { };
|
||||
|
||||
tftui = python3Packages.callPackage ../applications/networking/cluster/tftui { };
|
||||
|
||||
tfupdate = callPackage ../applications/networking/cluster/tfupdate { };
|
||||
|
||||
tgswitch = callPackage ../applications/networking/cluster/tgswitch { };
|
||||
|
Loading…
Reference in New Issue
Block a user