nixpkgs/pkgs/development/python-modules/python-hcl2/default.nix
2025-02-21 09:28:51 +00:00

44 lines
938 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
lark,
pytestCheckHook,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "python-hcl2";
version = "6.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "amplify-education";
repo = "python-hcl2";
tag = "v${version}";
hash = "sha256-vf39szL1MixAKoO67e9YDWNuQIs3qdQ6ZkeXdCpPAV0=";
};
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/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ shivaraj-bh ];
};
}