Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
934 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
lark,
pytestCheckHook,
setuptools-scm,
setuptools,
}:
buildPythonPackage rec {
pname = "python-hcl2";
version = "7.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "amplify-education";
repo = "python-hcl2";
tag = "v${version}";
hash = "sha256-aHaDZvgpiINUEdSYlUVwa0l80mujb9F04eboAdiuzDc=";
};
disabled = pythonOlder "3.7";
build-system = [
setuptools
setuptools-scm
];
dependencies = [ lark ];
pythonImportsCheck = [ "hcl2" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ shivaraj-bh ];
};
}