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