2017-12-11 12:57:24 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-04-02 19:15:34 +00:00
|
|
|
, regex
|
|
|
|
# Test inputs
|
|
|
|
, pytestCheckHook
|
2017-12-11 12:57:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-11-07 09:56:22 +00:00
|
|
|
pname = "lark-parser";
|
2021-04-02 19:15:34 +00:00
|
|
|
version = "0.11.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;
|
2021-04-02 19:15:34 +00:00
|
|
|
sha256 = "1v1piaxpz4780km2z5i6sr9ygi9wpn09yyh999b3f4y0dcz20pbd";
|
2017-12-11 12:57:24 +00:00
|
|
|
};
|
|
|
|
|
2021-04-02 19:15:34 +00:00
|
|
|
propagatedBuildInputs = [ regex ];
|
2017-12-11 12:57:24 +00:00
|
|
|
|
2021-04-02 19:15:34 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_nearley" # requires Js2Py package (not in nixpkgs)
|
|
|
|
];
|
|
|
|
disabledTests = [
|
|
|
|
"test_override_rule" # has issue with file access paths
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-12-11 12:57:24 +00:00
|
|
|
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";
|
2021-04-02 19:15:34 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fridh drewrisinger ];
|
2017-12-11 12:57:24 +00:00
|
|
|
};
|
|
|
|
}
|