mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 21:33:49 +00:00
2258156699
We're not interested in the profiling, but the actual tests. They currently log a warning, because upstream does not test them in their CI and the lexer/parser artifacts are out of date¹. [1] https://github.com/antlr/antlr4/issues/4041
26 lines
491 B
Nix
26 lines
491 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, isPy3k
|
|
, python
|
|
, antlr4 }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "antlr4-python3-runtime";
|
|
inherit (antlr4.runtime.cpp) version src;
|
|
disabled = python.pythonOlder "3.6";
|
|
|
|
sourceRoot = "source/runtime/Python3";
|
|
|
|
# in 4.9, test was renamed to tests
|
|
checkPhase = ''
|
|
cd test*
|
|
${python.interpreter} run.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Runtime for ANTLR";
|
|
homepage = "https://www.antlr.org/";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|