blob: 047399822885e4eb77fe9c9bd235916dd24cd564 (
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
44
45
46
|
{
lib,
buildPythonPackage,
colorama,
fetchFromGitHub,
pytestCheckHook,
regex,
setuptools,
}:
buildPythonPackage rec {
pname = "tatsu";
version = "5.13.1";
pyproject = true;
src = fetchFromGitHub {
owner = "neogeny";
repo = "TatSu";
tag = "v${version}";
hash = "sha256-iZtYqPvQxXl6SFG2An7dN3KxaxCTvAiAkeeuXUhLuF0=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
colorama
regex
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "tatsu" ];
meta = {
description = "Generates Python parsers from grammars in a variation of EBNF";
longDescription = ''
TatSu (the successor to Grako) is a tool that takes grammars in a
variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in
Python.
'';
homepage = "https://tatsu.readthedocs.io/";
changelog = "https://github.com/neogeny/TatSu/releases/tag/${src.tag}";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}
|