2022-08-12 12:06:08 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, python
|
|
|
|
, antlr4 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "antlr4-python3-runtime";
|
|
|
|
inherit (antlr4.runtime.cpp) version src;
|
2022-08-12 12:06:08 +00:00
|
|
|
disabled = python.pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/runtime/Python3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
# in 4.9, test was renamed to tests
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
2022-06-26 10:26:21 +00:00
|
|
|
cd test*
|
2022-12-28 21:21:41 +00:00
|
|
|
${python.interpreter} run.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Runtime for ANTLR";
|
|
|
|
homepage = "https://www.antlr.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|