2019-08-14 21:26:49 +00:00
|
|
|
{ lib, buildPythonPackage, isPy3k, python
|
|
|
|
, antlr4
|
|
|
|
}:
|
2019-06-06 00:02:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "antlr4-python2-runtime";
|
2019-08-14 21:26:49 +00:00
|
|
|
inherit (antlr4.runtime.cpp) version src;
|
2019-06-06 00:02:33 +00:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
2019-08-14 21:26:49 +00:00
|
|
|
sourceRoot = "source/runtime/Python2";
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests/TestTokenStreamRewriter.py
|
|
|
|
'';
|
2019-06-06 00:02:33 +00:00
|
|
|
|
2019-08-14 21:26:49 +00:00
|
|
|
meta = with lib; {
|
2019-06-06 00:02:33 +00:00
|
|
|
description = "Runtime for ANTLR";
|
|
|
|
homepage = "https://www.antlr.org/";
|
2019-08-14 21:26:49 +00:00
|
|
|
license = licenses.bsd3;
|
2019-06-06 00:02:33 +00:00
|
|
|
};
|
|
|
|
}
|