Subject: [bug#74344] [PATCH v4 4/7] gnu: Add qtcsv.

From: Sughosha <[email-masked]>
Date: Fri, 21 Feb 2025 14:31:57 +0530

* gnu/packages/serialization.scm (qtcsv): New variable.

Change-Id: I9192e9c86914a204f1fcf940b56da33d0ba6ffbb
---
 gnu/packages/serialization.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index f77ae9dc16..c0f7001fa0 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -51,6 +51,7 @@ (define-module (gnu packages serialization)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system pyproject)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system qt)
   #:use-module (gnu packages)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages base)
@@ -69,6 +70,7 @@ (define-module (gnu packages serialization)
   #:use-module (gnu packages python-check)
   #:use-module (gnu packages python-science)
   #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages qt)
   #:use-module (gnu packages time))
 
 (define-public avro-cpp-1.9
@@ -441,6 +443,30 @@ (define-public libcsv
      "This package provides a C library for parsing and writing CSV data.")
     (license license:lgpl2.1+)))
 
+(define-public qtcsv
+  (package
+    (name "qtcsv")
+    (version "1.7")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/iamantony/qtcsv")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1c9i93kr7wvpr01i4wixi9mf991nd3k2adg5fy0vxwwlvvc7dgdw"))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase
+           #:test-target "tests"))
+    (home-page "https://github.com/iamantony/qtcsv")
+    (synopsis "Library for reading and writing CSV files in Qt")
+    (description
+     "@code{qtcsv} is a library for reading and writing
+@acronym{CSV,comma-seperated values} files in Qt.")
+    (license license:expat)))
+
 (define-public libscfg
   (package
     (name "libscfg")
-- 
2.47.1