blob: f8291a743c39e39a995b4a777ba9a235b3e5f2a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
lark,
setuptools,
}:
buildPythonPackage rec {
pname = "bc-python-hcl2";
version = "0.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "bridgecrewio";
repo = "python-hcl2";
tag = version;
hash = "sha256-Auk5xDLw2UhMzWa7YMKzwUSjhD9s6xHt8RcXMzzL8M0=";
};
build-system = [ setuptools ];
dependencies = [ lark ];
# This fork of python-hcl2 doesn't ship tests
doCheck = false;
pythonImportsCheck = [ "hcl2" ];
meta = {
description = "Parser for HCL2 written in Python using Lark";
longDescription = ''
This parser only supports HCL2 and isn't backwards compatible with HCL v1.
It can be used to parse any HCL2 config file such as Terraform.
'';
homepage = "https://github.com/bridgecrewio/python-hcl2";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ anhdle14 ];
mainProgram = "hcl2tojson";
};
}
|