Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, isPy3k, python 2, antlr4 3}: 4 5buildPythonPackage rec { 6 pname = "antlr4-python3-runtime"; 7 inherit (antlr4.runtime.cpp) version src; 8 disabled = !isPy3k; 9 10 sourceRoot = "source/runtime/Python3"; 11 12 checkPhase = '' 13 cd test 14 ${python.interpreter} ctest.py 15 ''; 16 17 meta = with lib; { 18 description = "Runtime for ANTLR"; 19 homepage = "https://www.antlr.org/"; 20 license = licenses.bsd3; 21 }; 22}