nixpkgs/pkgs/development/python-modules/lark-parser/default.nix

30 lines
654 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:
buildPythonPackage rec {
pname = "lark-parser";
version = "0.7.0";
src = fetchFromGitHub {
owner = "lark-parser";
repo = "lark";
rev = version;
sha256 = "1zynj09w361yvbxr4hir681dfnlq1hzniws9dzgmlkvd6jnhjgx3";
};
# tests of Nearley support require js2py
preCheck = ''
rm -r tests/test_nearley
'';
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 ];
};
}