2017-12-11 13:57:24 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lark-parser"; # PyPI name
|
2018-01-02 09:59:43 +01:00
|
|
|
version = "2017-12-18";
|
2017-12-11 13:57:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "erezsh";
|
|
|
|
repo = "lark";
|
2018-01-02 09:59:43 +01:00
|
|
|
rev = "9d6cde9b1ba971f02ea8106fa3b71a934e83d6fa";
|
|
|
|
sha256 = "0nv6nxd8wx9dwhn37m94fkc10gknckrjs1hzajxygla3dpql455j";
|
2017-12-11 13:57:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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/erezsh/lark;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|