Files
nixpkgs/pkgs/development/python-modules/lark/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
986 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
regex,
setuptools,
}:
buildPythonPackage rec {
pname = "lark";
version = "1.2.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "lark-parser";
repo = "lark";
tag = version;
hash = "sha256-02NX/2bHTYSVTDLLudJmEU2DcQNn0Ke+5ayilKLlwqA=";
};
nativeBuildInputs = [ setuptools ];
# Optional import, but fixes some re known bugs & allows advanced regex features
propagatedBuildInputs = [ regex ];
pythonImportsCheck = [
"lark"
"lark.parsers"
"lark.tools"
"lark.grammars"
];
# Js2py is needed for tests but it's unmaintained and insecure
doCheck = false;
meta = {
description = "Modern parsing library for Python, implementing Earley & LALR(1) and an easy interface";
homepage = "https://lark-parser.readthedocs.io/";
changelog = "https://github.com/lark-parser/lark/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = [ ];
};
}