10 buildPythonPackage rec {
11 pname = "bc-python-hcl2";
15 disabled = pythonOlder "3.6";
18 inherit pname version;
19 hash = "sha256-rI/1n7m9Q36im4mn18UH/QoelXhFuumurGnyiSuNaB4=";
22 # Nose is required during build process, so can not use `nativeCheckInputs`.
32 # This fork of python-hcl2 doesn't ship tests
35 pythonImportsCheck = [
40 description = "Parser for HCL2 written in Python using Lark";
42 This parser only supports HCL2 and isn't backwards compatible with HCL v1.
43 It can be used to parse any HCL2 config file such as Terraform.
45 # Although this is the main homepage from PyPi but it is also a homepage
46 # of another PyPi package (python-hcl2). But these two are different.
47 homepage = "https://github.com/amplify-education/python-hcl2";
48 license = licenses.mit;
49 maintainers = with maintainers; [ anhdle14 ];
50 mainProgram = "hcl2tojson";