gnu: Add python-lark.

* gnu/packages/python-xyz.scm (python-lark): New variable.
(python-lark-parser): Inherit from python-lark and update to 0.12.0.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-04-22 16:00:28 +02:00 committed by Sharlatan Hellseher
parent 61ba713470
commit dbc331397e
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -23629,17 +23629,18 @@ in @file{pyproject.toml}-based projects. It provides basic functionality to
write tooling that generates distribution files from Python projects.")
(license license:expat)))
(define-public python-lark-parser
(define-public python-lark
(package
(name "python-lark-parser")
(version "0.9.0")
(source (origin
(name "python-lark")
(version "1.2.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "lark-parser" version))
(uri (pypi-uri "lark" version))
(sha256
(base32
"1kd61asrb3h9spgsj4bslfbgp8q4271sw3hblk6f2vbbblv8jxcy"))))
(build-system python-build-system)
(base32 "107d1w24b3ln4zwsw4yvkfhff6bk5n3cpvlgbbqww5ndc80pv06a"))))
(build-system pyproject-build-system)
(native-inputs (list python-pytest python-setuptools python-wheel))
(home-page "https://github.com/lark-parser/lark")
(synopsis "Multi-language parser for Python")
(description
@ -23649,6 +23650,18 @@ capable of parsing almost any programming language out there, and to
some degree most natural languages too.")
(license license:expat)))
;; XXX: lark was renamed from lark_parser with major release 1
(define-public python-lark-parser
(package/inherit python-lark
(name "python-lark-parser")
(version "0.12.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "lark-parser" version))
(sha256
(base32
"0f51jr7dvnd3rm7j5nkkgm2vxfa7a1s804avlvf16h11y6qpv5hm"))))))
(define-public python-find-libpython
(package
(name "python-find-libpython")