Subject: [bug#67385] [PATCH] gnu: Add perl-mousex-params-validate.

From: Rikard Nordgren <[email-masked]>
Date: Wed, 22 Nov 2023 20:05:46 +0000

* gnu/packages/perl.scm (perl-mousex-params-validate): New variable.

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

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 8b82c272fc..a448d270a0 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -8077,6 +8077,30 @@ (define-public perl-mousex-nativetraits
 of data.")
     (license (package-license perl))))
 
+(define-public perl-mousex-params-validate
+  (package
+    (name "perl-mousex-params-validate")
+    (version "0.10")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/manwar/MouseX-Params-Validate")
+             (commit "6b3c2c10537dd5c9cb7b068e3647b72ec5b39c49")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0yzwp0c2317mr99h5vadwh4fd6pwf26ypc3xnlb494p7hyb36a6l"))))
+    (build-system perl-build-system)
+    (propagated-inputs (list perl-devel-caller perl-mouse perl-params-validate
+                             perl-sub-exporter))
+    (home-page "https://metacpan.org/pod/MouseX::Params::Validate")
+    (synopsis "Extension of @code{Params::Validate} using Mouse's types")
+    (description
+     "Method parameter validation extension to Mouse.
+Code borrowed entirely from @code{MooseX::Params::Validate} and stripped Moose
+footprints.")
+    (license license:artistic2.0)))
+
 (define-public perl-mozilla-ca
   (package
     (name "perl-mozilla-ca")

base-commit: 23627b1706af25a0a30b96b9169a3495279aff1b
-- 
2.34.1