python3Packages.lark-parser: 0.11.2 -> 0.11.3

This commit is contained in:
Drew Risinger 2021-05-03 13:48:03 -04:00
parent 2b1cc5092e
commit a8d4131257

View file

@ -1,35 +1,38 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, python
, regex , regex
# Test inputs
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "lark-parser"; pname = "lark-parser";
version = "0.11.2"; version = "0.11.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lark-parser"; owner = "lark-parser";
repo = "lark"; repo = "lark";
rev = version; rev = version;
sha256 = "1v1piaxpz4780km2z5i6sr9ygi9wpn09yyh999b3f4y0dcz20pbd"; sha256 = "1ggvlzpdzlrxl46fgi8cfq2rzlwn21shpdkm4pknnhfjlsinv913";
}; };
# Optional import, but fixes some re known bugs & allows advanced regex features
propagatedBuildInputs = [ regex ]; propagatedBuildInputs = [ regex ];
checkInputs = [ pytestCheckHook ]; checkPhase = ''
disabledTestPaths = [ runHook preCheck
"tests/test_nearley" # requires Js2Py package (not in nixpkgs)
]; # Official way to run the tests. Runs unittest internally.
disabledTests = [ # pytest produces issues with some test resource paths (relies on __main__)
"test_override_rule" # has issue with file access paths ${python.interpreter} -m tests
];
runHook postCheck
'';
meta = with lib; { 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://lark-parser.readthedocs.io/";
changelog = "https://github.com/lark-parser/lark/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fridh drewrisinger ]; maintainers = with maintainers; [ fridh drewrisinger ];
}; };