Subject: [bug#77008] [PATCH python-team] gnu: Add python-tatsu.

From: gemmaro <[email-masked]>
Date: Fri, 14 Mar 2025 17:43:28 +0900

* gnu/packages/python-xyz.scm (python-tatsu): New variable.

Change-Id: I0868e5ec57bc384b2dad2114671b780c988d77d4
---
 gnu/packages/python-xyz.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 01c6322931..5a4e6455e5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -141,7 +141,7 @@
 ;;; Copyright © 2023 Dominik Delgado Steuter <[email-masked]>
 ;;; Copyright © 2023 Ivan Vilata-i-Balaguer <[email-masked]>
 ;;; Copyright © 2023 Ontje Lünsdorf <[email-masked]>
-;;; Copyright © 2023 gemmaro <[email-masked]>
+;;; Copyright © 2023, 2025 gemmaro <[email-masked]>
 ;;; Copyright © 2023 Parnikkapore <[email-masked]>
 ;;; Copyright © 2023 Foundation Devices, Inc. <[email-masked]>
 ;;; Copyright © c4droid <[email-masked]>
@@ -37215,6 +37215,29 @@ (define-public python-taskgroup
 @code{asyncio.Runner} and @code{asyncio.timeout}.")
     (license license:expat)))
 
+(define-public python-tatsu
+  (package
+    (name "python-tatsu")
+    (version "5.13.1")
+    (source
+     (origin
+       (method git-fetch) ;for tests
+       (uri (git-reference
+             (url "https://github.com/neogeny/TatSu")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0pdq9d45vbp7j600ig4k21mv2wipvmz05dji91x7kifhzfl5i6w9"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-setuptools python-wheel python-pytest))
+    (home-page "https://tatsu.readthedocs.io/en/stable/")
+    (synopsis "PEG/Packrat Parser generator for Python")
+    (description
+     "TatSu (竜) takes a grammar in a variation of Extended Backus-Naur Form
+(EBNF) as input, and outputs a memoizing Parsing Expression Grammar
+(PEG) or Packrat parser in Python.")
+    (license license:bsd-4)))
+
 (define-public python-csb43
   (package
     (name "python-csb43")

base-commit: f73ece09ab3c1bd0d367eb343426ebc3c8d41190
-- 
2.48.1