blob: 45366f2811a381fff4466c2b1c6185799c3e343b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
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=";
};
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 ];
};
}
|