GNU bug report logs - #67963
[PATCH 0/4] Add Perl modules for debbugs.gnu.org

Previous Next

Package: guix-patches;

Reported by: Felix Lechner <felix.lechner <at> lease-up.com>

Date: Fri, 22 Dec 2023 04:15:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Felix Lechner <felix.lechner <at> lease-up.com>
To: 67963 <at> debbugs.gnu.org
Cc: Felix Lechner <felix.lechner <at> lease-up.com>
Subject: [bug#67963] [PATCH v2 10/37] gnu: Add perl-datetime-format-pg.
Date: Tue, 16 Jan 2024 14:12:48 -0800
* gnu/packages/perl.scm (perl-datetime-format-pg): New variable.

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

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index e04903280a..f4fb49d9b2 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -3575,6 +3575,32 @@ (define-public perl-datetime-format-natural
 parsing logic.")
     (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 DateTime::Duration object and
+produce a string representing it in a format accepted by PostgreSQL.")
+    (license license:perl-license)))
+
 (define-public perl-datetime-format-strptime
   (package
     (name "perl-datetime-format-strptime")
-- 
2.41.0





This bug report was last modified 75 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.