Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4}: 5 6buildPythonPackage rec { 7 pname = "lark-parser"; 8 version = "0.8.8"; 9 10 src = fetchFromGitHub { 11 owner = "lark-parser"; 12 repo = "lark"; 13 rev = version; 14 sha256 = "1q2dvkkfx9dvag5v5ps0ki4avh7i003gn9sj30jy1rsv1bg4y2mb"; 15 }; 16 17 # tests of Nearley support require js2py 18 preCheck = '' 19 rm -r tests/test_nearley 20 ''; 21 22 meta = { 23 description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface"; 24 homepage = "https://github.com/lark-parser/lark"; 25 license = lib.licenses.mit; 26 maintainers = with lib.maintainers; [ fridh ]; 27 }; 28}