Files
nixpkgs/pkgs/development/python-modules/python-hcl2/default.nix
shivaraj-bh e82f378f00 python3Packages.python-hcl2: init at 4.3.4
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
2024-07-02 21:59:44 +05:30

45 lines
939 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
lark,
pytestCheckHook,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "python-hcl2";
version = "4.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "amplify-education";
repo = "python-hcl2";
rev = "v${version}";
hash = "sha256-P/EZG6LVW33X9IDE4TbQxakEfenkOqBJ1RM6BZE/7Kk=";
};
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 ];
};
}