nixpkgs-suyu/pkgs/development/python-modules/lark-parser/default.nix
Florian Klink becf8879f4 lark-parser: 2017-12-18 -> 0.6.5
This bumps lark-parser to a released version that doesn't loop forever
and consumes all memory on certain grammars.

erezsh/lark redirects now to lark-parser/lark, so also update homepage.
2018-11-07 11:11:33 +01:00

30 lines
659 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "lark-parser";
version = "0.6.5";
src = fetchFromGitHub {
owner = "lark-parser";
repo = "lark";
rev = version;
sha256 = "0mf10xm9blqik8mwrpw0r07vqlk2y4r98yqvk1sq849zqlxmqpsr";
};
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";
homepage = https://github.com/lark-parser/lark;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fridh ];
};
}