8 buildPythonPackage rec {
9 pname = "antlr4-python3-runtime";
10 inherit (antlr4.runtime.cpp) version src;
14 disabled = python.pythonOlder "3.6";
16 sourceRoot = "${src.name}/runtime/Python3";
23 substituteInPlace tests/TestIntervalSet.py \
24 --replace "assertEquals" "assertEqual"
27 # We use an asterisk because this expression is used also for old antlr
28 # versions, where there the tests directory is `test` and not `tests`.
29 # See e.g in package `baserow`.
34 ${python.interpreter} run.py
41 description = "Runtime for ANTLR";
42 mainProgram = "pygrun";
43 homepage = "https://www.antlr.org/";
44 license = licenses.bsd3;