2022-07-13 08:05:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, python
|
|
|
|
, antlr4 }:
|
2018-03-07 18:10:17 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-06-23 13:27:58 +00:00
|
|
|
pname = "antlr4-python3-runtime";
|
2019-08-14 21:26:49 +00:00
|
|
|
inherit (antlr4.runtime.cpp) version src;
|
2022-07-13 08:05:24 +00:00
|
|
|
disabled = python.pythonOlder "3.6";
|
2018-03-07 18:10:17 +00:00
|
|
|
|
2019-08-14 21:26:49 +00:00
|
|
|
sourceRoot = "source/runtime/Python3";
|
|
|
|
|
2022-06-06 23:07:40 +00:00
|
|
|
# in 4.9, test was renamed to tests
|
2019-08-14 21:26:49 +00:00
|
|
|
checkPhase = ''
|
2022-06-06 23:07:40 +00:00
|
|
|
cd test*
|
2022-12-26 17:42:11 +00:00
|
|
|
${python.interpreter} run.py
|
2019-08-14 21:26:49 +00:00
|
|
|
'';
|
2018-03-07 18:10:17 +00:00
|
|
|
|
2019-08-14 21:26:49 +00:00
|
|
|
meta = with lib; {
|
2018-03-07 18:10:17 +00:00
|
|
|
description = "Runtime for ANTLR";
|
2019-04-22 08:14:28 +00:00
|
|
|
homepage = "https://www.antlr.org/";
|
2019-08-14 21:26:49 +00:00
|
|
|
license = licenses.bsd3;
|
2018-03-07 18:10:17 +00:00
|
|
|
};
|
|
|
|
}
|