2019-08-14 22:26:49 +01:00
|
|
|
{ lib, buildPythonPackage, isPy3k, python
|
|
|
|
, antlr4
|
|
|
|
}:
|
2018-03-07 18:10:17 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-06-23 14:27:58 +01:00
|
|
|
pname = "antlr4-python3-runtime";
|
2019-08-14 22:26:49 +01:00
|
|
|
inherit (antlr4.runtime.cpp) version src;
|
2018-03-07 18:10:17 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-08-14 22:26:49 +01:00
|
|
|
sourceRoot = "source/runtime/Python3";
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd test
|
|
|
|
${python.interpreter} ctest.py
|
|
|
|
'';
|
2018-03-07 18:10:17 +00:00
|
|
|
|
2019-08-14 22:26:49 +01:00
|
|
|
meta = with lib; {
|
2018-03-07 18:10:17 +00:00
|
|
|
description = "Runtime for ANTLR";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = "https://www.antlr.org/";
|
2019-08-14 22:26:49 +01:00
|
|
|
license = licenses.bsd3;
|
2018-03-07 18:10:17 +00:00
|
|
|
};
|
|
|
|
}
|