1{ lib
2, buildPythonPackage
3, isPy3k
4, python
5, antlr4 }:
6
7buildPythonPackage rec {
8 pname = "antlr4-python3-runtime";
9 inherit (antlr4.runtime.cpp) version src;
10 disabled = python.pythonOlder "3.6";
11
12 sourceRoot = "source/runtime/Python3";
13
14 # in 4.9, test was renamed to tests
15 checkPhase = ''
16 cd test*
17 ${python.interpreter} ctest.py
18 '';
19
20 meta = with lib; {
21 description = "Runtime for ANTLR";
22 homepage = "https://www.antlr.org/";
23 license = licenses.bsd3;
24 };
25}