python3Packages.lark: 1.0.0 -> 1.1.2
python3Packages.lark: disable nearley test Requires unpackaged Js2Py library, which has other unpackaged subdependencies...
This commit is contained in:
parent
676678f23f
commit
3f82a6ffb6
1 changed files with 7 additions and 10 deletions
|
@ -3,17 +3,18 @@
|
|||
, fetchFromGitHub
|
||||
, python
|
||||
, regex
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lark";
|
||||
version = "1.0.0";
|
||||
version = "1.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lark-parser";
|
||||
repo = "lark";
|
||||
rev = version;
|
||||
sha256 = "0pfvjh4ydc49gs6m8b3ip85c8nd4da2bhz9714fwcyl3hdp33q7n";
|
||||
sha256 = "sha256-Y1bDSiFnqAKTlIcd8aAgtc+I3TLnWF8hhQK2ez96TQs=";
|
||||
};
|
||||
|
||||
# Optional import, but fixes some re known bugs & allows advanced regex features
|
||||
|
@ -26,15 +27,11 @@ buildPythonPackage rec {
|
|||
"lark.grammars"
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# Official way to run the tests. Runs unittest internally.
|
||||
# pytest produces issues with some test resource paths (relies on __main__)
|
||||
${python.interpreter} -m tests
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
disabledTestPaths = [
|
||||
"tests/test_nearley/test_nearley.py" # requires unpackaged Js2Py library
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
|
||||
|
|
Loading…
Reference in a new issue