Subject: [PATCH 207/228] gnu: Add rust-sqlite3-parser-0.12.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:12:17 +0100

* gnu/packages/crates-io.scm (rust-sqlite3-parser-0.12): Add variable.

Change-Id: If2ce99a11a402db86ffbcbe9127e8644cb903944
---
 gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a3766215a1..3252a49fd4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66997,6 +66997,39 @@ (define-public rust-sqlite-0.26
        (("rust-libc" ,rust-libc-0.2)
         ("rust-sqlite3-sys" ,rust-sqlite3-sys-0.13))))))
 
+(define-public rust-sqlite3-parser-0.12
+  (package
+    (name "rust-sqlite3-parser")
+    (version "0.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sqlite3-parser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1dx8j16ki2fsrwn1p36wnf079pvcs17549rin29x99vhkcpjbpcs"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-cc" ,rust-cc-1)
+                       ("rust-fallible-iterator" ,rust-fallible-iterator-0.3)
+                       ("rust-indexmap" ,rust-indexmap-2)
+                       ("rust-log" ,rust-log-0.4)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-phf" ,rust-phf-0.11)
+                       ("rust-phf-codegen" ,rust-phf-codegen-0.11)
+                       ("rust-phf-shared" ,rust-phf-shared-0.11)
+                       ("rust-smallvec" ,rust-smallvec-1)
+                       ;; TODO: do not add normal+build dependency twice.
+                       ("rust-uncased" ,rust-uncased-0.9))
+       #:cargo-development-inputs
+       (("rust-env-logger" ,rust-env-logger-0.10))))
+    (home-page "https://github.com/gwenn/lemon-rs")
+    (synopsis "Parser for SQL as understood by SQLite")
+    (description
+      "This package provides a parser for as understood by SQLite.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-sqlite3-src-0.5
   (package
     (name "rust-sqlite3-src")
-- 
2.41.0