Subject: [bug#63894] [PATCH 20/55] gnu: Add perl-datetime-format-pg.

From: Antero Mejr <[email-masked]>
Date: Sun, 4 Jun 2023 17:42:14 +0000

* gnu/packages/perl.scm (perl-datetime-format-pg): New variable.
---
 gnu/packages/perl.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 990f107537..f4423b0958 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -3808,6 +3808,33 @@ (define-public perl-datetime-format-w3cdtf
 the appropriate objects.")
     (license (package-license perl))))
 
+(define-public perl-datetime-format-pg
+  (package
+    (name "perl-datetime-format-pg")
+    (version "0.16014")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://cpan/authors/id/D/DM/DMAKI/DateTime-Format-Pg-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "1f8fpv655x8w9zaa65lp1yn0pianjv5l4qvg6v1q9hsda9k9dfrq"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-module-build-tiny))
+    (propagated-inputs (list perl-datetime
+                             perl-datetime-format-builder
+                             perl-datetime-timezone))
+    (home-page "https://metacpan.org/release/DateTime-Format-Pg")
+    (synopsis "Parse and format PostgreSQL dates and times")
+    (description
+     "This module understands the formats used by PostgreSQL for its DATE,
+TIME, TIMESTAMP, and INTERVAL data types. It can be used to parse these
+formats in order to create DateTime or DateTime::Duration objects, and it can
+take a DateTime or @code{DateTime::Duration} object and produce a string
+representing it in a format accepted by PostgreSQL.")
+    (license license:perl-license)))
+
 (define-public perl-devel-callchecker
   (package
     (name "perl-devel-callchecker")
-- 
2.39.2