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