889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
23 lines
473 B
Nix
23 lines
473 B
Nix
{ lib, buildPythonPackage, isPy3k, python
|
|
, antlr4
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "antlr4-python3-runtime";
|
|
inherit (antlr4.runtime.cpp) version src;
|
|
disabled = !isPy3k;
|
|
|
|
sourceRoot = "source/runtime/Python3";
|
|
|
|
# in 4.9, test was renamed to tests
|
|
checkPhase = ''
|
|
cd test*
|
|
${python.interpreter} ctest.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Runtime for ANTLR";
|
|
homepage = "https://www.antlr.org/";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|