Subject: [bug#63894] [PATCH 05/55] gnu: Add perl-dbix-class-dynamicdefault.

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

* gnu/packages/databases.scm (perl-dbix-class-dynamicdefault): New variable.
---
 gnu/packages/databases.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index f3ad1a7531..a37932e7f4 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2176,6 +2176,29 @@ (define-public perl-dbicx-testdatabase
 after your tests, ordering of tests affecting failure, etc.")
     (license license:perl-license)))
 
+(define-public perl-dbix-class-dynamicdefault
+  (package
+    (name "perl-dbix-class-dynamicdefault")
+    (version "0.04")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://cpan/authors/id/M/MS/MSTROUT/DBIx-Class-DynamicDefault-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "1yssda00988hn9v96jl95apbzib74vgbcgf69m5mhhj64amm33r2"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-dbicx-testdatabase perl-module-install))
+    (propagated-inputs (list perl-dbix-class))
+    (home-page "https://metacpan.org/release/DBIx-Class-DynamicDefault")
+    (synopsis "Automatically set and update fields")
+    (description
+     "Automatically set and update fields with values calculated at runtime.
+Ipdate or create actions will set the specified columns to the value returned
+by the callback you specified as a method name or code reference.")
+    (license license:perl-license)))
+
 (define-public perl-dbd-pg
   (package
     (name "perl-dbd-pg")
-- 
2.39.2