depot/third_party/nixpkgs/pkgs/by-name/te/terraform-local/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

36 lines
1,014 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
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
];
# Cant 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 ];
};
}