2017-12-11 12:57:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-11-07 09:56:22 +00:00
|
|
|
pname = "lark-parser";
|
2019-06-02 18:55:40 +00:00
|
|
|
version = "0.7.1";
|
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;
|
2019-06-02 18:55:40 +00:00
|
|
|
sha256 = "17h7s0yc8jyjmlcwsaw93ijl982ws3p8nxif2dc3rv01dqhf0xx1";
|
2017-12-11 12:57:24 +00:00
|
|
|
};
|
|
|
|
|
2019-05-06 22:10:26 +00: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";
|
2018-11-07 09:56:22 +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 ];
|
|
|
|
};
|
|
|
|
}
|