mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
44 lines
938 B
Nix
44 lines
938 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
lark,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-hcl2";
|
|
version = "7.2.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "amplify-education";
|
|
repo = "python-hcl2";
|
|
tag = "v${version}";
|
|
hash = "sha256-+qPTRm068x09MxRNUx+oo2qd8NsLorXtdN3mEX4CxPE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|