depot/third_party/nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

25 lines
496 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 = "${src.name}/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;
};
}