···11{
22 lib,
33 buildPythonPackage,
44- fetchPypi,
44+ fetchFromGitHub,
55 lark,
66 pythonOlder,
77 setuptools,
···14141515 disabled = pythonOlder "3.6";
16161717- src = fetchPypi {
1818- inherit pname version;
1919- hash = "sha256-+uYrKkGmda0zDRNNgldlJtt1X3K70OWoUN49hfwkxA4=";
1717+ src = fetchFromGitHub {
1818+ owner = "bridgecrewio";
1919+ repo = "python-hcl2";
2020+ tag = version;
2121+ hash = "sha256-Auk5xDLw2UhMzWa7YMKzwUSjhD9s6xHt8RcXMzzL8M0=";
2022 };
21232224 build-system = [ setuptools ];
···3436 This parser only supports HCL2 and isn't backwards compatible with HCL v1.
3537 It can be used to parse any HCL2 config file such as Terraform.
3638 '';
3737- # Although this is the main homepage from PyPi but it is also a homepage
3838- # of another PyPi package (python-hcl2). But these two are different.
3939- homepage = "https://github.com/amplify-education/python-hcl2";
3939+ homepage = "https://github.com/bridgecrewio/python-hcl2";
4040 license = licenses.mit;
4141 maintainers = with maintainers; [ anhdle14 ];
4242 mainProgram = "hcl2tojson";