2024-07-27 06:49:29 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
python3Packages,
|
|
|
|
|
fetchPypi,
|
|
|
|
|
}:
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
|
pname = "terraform_local";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
version = "0.19.0";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
|
hash = "sha256-0E11eaEhz1pwP9MBVilqioj92fZP7wjLJcR4no79n9s=";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|