blob: ae628d9e4a743bc77b747ffebb6fd91cb6d8a66e (
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
42
43
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
regex,
setuptools,
}:
buildPythonPackage rec {
pname = "lark";
version = "1.2.2";
pyproject = true;
src = fetchFromGitHub {
owner = "lark-parser";
repo = "lark";
tag = version;
hash = "sha256-02NX/2bHTYSVTDLLudJmEU2DcQNn0Ke+5ayilKLlwqA=";
};
nativeBuildInputs = [ setuptools ];
# Optional import, but fixes some re known bugs & allows advanced regex features
propagatedBuildInputs = [ regex ];
pythonImportsCheck = [
"lark"
"lark.parsers"
"lark.tools"
"lark.grammars"
];
# Js2py is needed for tests but it's unmaintained and insecure
doCheck = false;
meta = {
description = "Modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
homepage = "https://lark-parser.readthedocs.io/";
changelog = "https://github.com/lark-parser/lark/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|