depot/third_party/nixpkgs/pkgs/development/python-modules/antlr4-python3-runtime/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

25 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;
};
}