From b79d8b1ff7d94e67fe49564f30c21d2d2fa1dc8b Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Tue, 10 Mar 2015 15:32:36 -0500 Subject: gnu: Add Time-Mock. * gnu/packages/perl.scm (perl-time-mock): New variable. --- gnu/packages/perl.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'gnu/packages/perl.scm') diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 00a811c206..94023782ba 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -2235,6 +2235,27 @@ the system epoch") time values and formating dates into ASCII strings.") (license (package-license perl)))) +(define-public perl-time-mock + (package + (name "perl-time-mock") + (version "v0.0.2") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://cpan/authors/id/E/EW/EWILHELM/" + "Time-Mock-" version ".tar.gz")) + (sha256 + (base32 + "0bwqyg8z98m8cjw1qcm4wg502n225k33j2fp8ywxkgfjdd1zgllv")))) + (build-system perl-build-system) + (propagated-inputs + `(("perl-timedate" ,perl-timedate))) ;For Date::Parse + (home-page "http://search.cpan.org/dist/Time-Mock") + (synopsis "Shift and scale time") + (description "This module allows you to speed up your sleep(), alarm(), +and time() calls.") + (license (package-license perl)))) + (define-public perl-try-tiny (package (name "perl-try-tiny") -- cgit 1.4.1