aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve George <steve@futurile.net>2024-04-26 13:42:02 +0200
committerLudovic Courtès <ludo@gnu.org>2024-05-04 19:14:26 +0200
commit7d6da9412ef2b888fa6a9d03fb8aa840d1cab9e1 (patch)
treebc4b433fa002253d96ee53362b16f2ee4086d911
parent57bb1998a0ce0fcb06700f548bd90e2ec298f991 (diff)
downloadguix-7d6da9412ef2b888fa6a9d03fb8aa840d1cab9e1.tar.gz
guix-7d6da9412ef2b888fa6a9d03fb8aa840d1cab9e1.zip
gnu: Add perl-sub-override.
* gnu/packages/crates-io.scm (perl-sub-override): New variable. Change-Id: I5a366862bb5bfd777094e2d58239d50aad95577c -- >8 -- Originally part of https://issues.guix.gnu.org/44447 Change-Id: Ib4542ceedcff114e1184fc8bafac0f76985b78be Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/perl.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 362957d5f5..a72c3af765 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -38,6 +38,7 @@
;;; Copyright © 2023 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2023 Jake Leporte <jakeleporte@outlook.com>
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
+;;; Copyright © 2020, 2023 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -10118,6 +10119,26 @@ specification is omitted in the name, then the current package is used. The
return value is the sub.")
(license (package-license perl))))
+(define-public perl-sub-override
+ (package
+ (name "perl-sub-override")
+ (version "0.10")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://cpan.metacpan.org/authors/id/O/OV/OVID/Sub-Override-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "0ixbaxhnicx90483rqhcz5dzqzxfwjxf2crghw3lgmasairwr3bd"))))
+ (native-inputs `(("perl-test-fatal" ,perl-test-fatal)))
+ (build-system perl-build-system)
+ (home-page "https://metacpan.org/release/Sub-Override")
+ (synopsis "Perl extension to override a subroutine")
+ (description "A @code{Sub::Override}} module that makes it easy to override
++subroutines. Particularly useful for mocking in tests.")
+ (license (package-license perl))))
+
(define-public perl-sub-quote
(package
(name "perl-sub-quote")