2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
lark,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools-scm,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-hcl2";
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "5.0.0";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amplify-education";
|
|
|
|
repo = "python-hcl2";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-09 16:51:18 +00:00
|
|
|
hash = "sha256-aUPjW3yQci5aG85qIRHPiKiX01cFw8jWKJY5RuRATvQ=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [ lark ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "hcl2" ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A parser for HCL2 written in Python using Lark";
|
|
|
|
homepage = "https://github.com/amplify-education/python-hcl2";
|
|
|
|
changelog = "https://github.com/amplify-education/python-hcl2/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ shivaraj-bh ];
|
|
|
|
};
|
|
|
|
}
|