From 5c16ff3fe65ade1cd04ca5969596e62efe081f71 Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Thu, 4 Jul 2024 11:57:40 +0530 Subject: [PATCH] terraform-local: init at 0.18.2 --- pkgs/by-name/te/terraform-local/package.nix | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/te/terraform-local/package.nix diff --git a/pkgs/by-name/te/terraform-local/package.nix b/pkgs/by-name/te/terraform-local/package.nix new file mode 100644 index 000000000000..7b1d91e2c6ca --- /dev/null +++ b/pkgs/by-name/te/terraform-local/package.nix @@ -0,0 +1,36 @@ +{ + lib, + python3Packages, + fetchPypi, +}: +python3Packages.buildPythonApplication rec { + pname = "terraform_local"; + version = "0.18.2"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-8opiMd6ZxgWRJIDa0vhZJh5bmsO/CaHgGJ4sdEdxZLc="; + }; + + build-system = with python3Packages; [ setuptools ]; + + dependencies = with python3Packages; [ + python-hcl2 + packaging + localstack-client + ]; + + # Can’t run `pytestCheckHook` because the tests are integration tests and expect localstack to be present, which in turn expects docker to be running. + doCheck = false; + + # There is no `pythonImportsCheck` because the package only outputs a binary: tflocal + dontUsePythonImportsCheck = true; + + meta = with lib; { + description = "Terraform CLI wrapper to deploy your Terraform applications directly to LocalStack"; + homepage = "https://github.com/localstack/terraform-local"; + license = licenses.asl20; + maintainers = with maintainers; [ shivaraj-bh ]; + }; +}