mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
22 lines
445 B
Nix
22 lines
445 B
Nix
{ lib, buildPythonPackage, isPy3k, python
|
|
, antlr4
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "antlr4-python2-runtime";
|
|
inherit (antlr4.runtime.cpp) version src;
|
|
disabled = isPy3k;
|
|
|
|
sourceRoot = "source/runtime/Python2";
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} tests/TestTokenStreamRewriter.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Runtime for ANTLR";
|
|
homepage = "https://www.antlr.org/";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|