2017-12-11 12:57:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-11-07 09:56:22 +00:00
|
|
|
pname = "lark-parser";
|
2020-06-25 11:24:48 +01:00
|
|
|
version = "0.8.8";
|
2017-12-11 12:57:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-11-07 09:56:22 +00:00
|
|
|
owner = "lark-parser";
|
2017-12-11 12:57:24 +00:00
|
|
|
repo = "lark";
|
2018-11-07 09:56:22 +00:00
|
|
|
rev = version;
|
2020-06-25 11:24:48 +01:00
|
|
|
sha256 = "1q2dvkkfx9dvag5v5ps0ki4avh7i003gn9sj30jy1rsv1bg4y2mb";
|
2017-12-11 12:57:24 +00:00
|
|
|
};
|
|
|
|
|
2019-05-06 23:10:26 +01:00
|
|
|
# tests of Nearley support require js2py
|
|
|
|
preCheck = ''
|
|
|
|
rm -r tests/test_nearley
|
2017-12-11 12:57:24 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
|
2020-03-09 09:10:43 +00:00
|
|
|
homepage = "https://github.com/lark-parser/lark";
|
2017-12-11 12:57:24 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|