1{ lib, buildPythonPackage, isPy3k, python 2, antlr4 3}: 4 5buildPythonPackage rec { 6 pname = "antlr4-python2-runtime"; 7 inherit (antlr4.runtime.cpp) version src; 8 disabled = isPy3k; 9 10 sourceRoot = "source/runtime/Python2"; 11 12 checkPhase = '' 13 ${python.interpreter} tests/TestTokenStreamRewriter.py 14 ''; 15 16 meta = with lib; { 17 description = "Runtime for ANTLR"; 18 homepage = "https://www.antlr.org/"; 19 license = licenses.bsd3; 20 }; 21}