2017-12-11 12:57:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-11-07 09:56:22 +00:00
|
|
|
pname = "lark-parser";
|
|
|
|
version = "0.6.5";
|
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;
|
|
|
|
sha256 = "0mf10xm9blqik8mwrpw0r07vqlk2y4r98yqvk1sq849zqlxmqpsr";
|
2017-12-11 12:57:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # Requires js2py
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|