Subject: [bug#67963] [PATCH v2 16/37] gnu: Add perl-hash-ordered.

From: Felix Lechner <[email-masked]>
Date: Tue, 16 Jan 2024 14:12:54 -0800

* gnu/packages/perl.scm (perl-hash-ordered): New variable.

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

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index ebf79ea105..dec4fca2bc 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -5691,6 +5691,30 @@ (define-public perl-hash-multivalue
 that may contain multiple values per key, inspired by MultiDict of WebOb.")
     (license (package-license perl))))
 
+(define-public perl-hash-ordered
+  (package
+    (name "perl-hash-ordered")
+    (version "0.014")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/D/DA/DAGOLDEN/Hash-Ordered-" version
+             ".tar.gz"))
+       (sha256
+        (base32 "0yvlb4f2bicya8l8q989whqrmfpz428zvr9xiamkgbjmj7bnrhwd"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-test-deep
+                         perl-test-failwarnings
+                         perl-test-fatal))
+    (home-page "https://metacpan.org/release/Hash-Ordered")
+    (synopsis "Fast, pure-Perl ordered hash class")
+    (description "This module implements an ordered hash, meaning that it
+associates keys with values like a Perl hash, but keeps the keys in a
+consistent order.  Because it is implemented as an object and manipulated
+with method calls, it is much slower than a Perl hash.")
+    (license license:asl2.0)))
+
 (define-public perl-hook-lexwrap
   (package
     (name "perl-hook-lexwrap")
-- 
2.41.0