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-03-09 09:10:43 +00:00
|
|
|
version = "0.8.2";
|
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-03-09 09:10:43 +00:00
|
|
|
sha256 = "1i585q27qlwk4rpgsh621s60im1j9ynwyz5pcc8s3ffmjam28vss";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|