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-11-29 07:24:55 +00:00
|
|
|
version = "0.7.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;
|
2019-11-29 07:24:55 +00:00
|
|
|
sha256 = "0gd5c3scpyir3h8clhwb5jsf8dkmh1vh7rx8135lkx9fxx01q0az";
|
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";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|