blob: a663b6e21dd48bb313dc4c035321249cc22bcceb (
plain) (
blame)
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
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, colorama, regex
, pytestrunner, pytestCheckHook, pytest-mypy
}:
buildPythonPackage rec {
pname = "tatsu";
version = "5.6.0";
src = fetchFromGitHub {
owner = "neogeny";
repo = "TatSu";
rev = "v${version}";
sha256 = "sha256-kC2MxMebS4TQEZBgTmYRBWaWSF36rVS3bXIsQgRrF0Y=";
};
disabled = pythonOlder "3.8";
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ colorama regex ];
checkInputs = [ pytestCheckHook pytest-mypy ];
pythonImportsCheck = [ "tatsu" ];
meta = with lib; {
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/";
license = licenses.bsd2;
maintainers = with maintainers; [ primeos ];
};
}
|