Merge pull request #118353 from drewrisinger/dr-pr-lark-parser-bump

python3Packages.lark-parser: 0.8.8 -> 0.11.2
This commit is contained in:
Robert Schütz 2021-04-05 22:16:51 +02:00 committed by GitHub
commit 560cc2af81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 9 deletions

View File

@ -1,28 +1,36 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, regex
# Test inputs
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "lark-parser"; pname = "lark-parser";
version = "0.8.8"; version = "0.11.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lark-parser"; owner = "lark-parser";
repo = "lark"; repo = "lark";
rev = version; rev = version;
sha256 = "1q2dvkkfx9dvag5v5ps0ki4avh7i003gn9sj30jy1rsv1bg4y2mb"; sha256 = "1v1piaxpz4780km2z5i6sr9ygi9wpn09yyh999b3f4y0dcz20pbd";
}; };
# tests of Nearley support require js2py propagatedBuildInputs = [ regex ];
preCheck = ''
rm -r tests/test_nearley
'';
meta = { 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; {
description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface"; description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
homepage = "https://github.com/lark-parser/lark"; homepage = "https://github.com/lark-parser/lark";
license = lib.licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ fridh ]; maintainers = with maintainers; [ fridh drewrisinger ];
}; };
} }