Subject: bug#69217: closed ([PATCH] gnu: Add go-github-com-benbjohnson-clock.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 19 Feb 2024 21:03:02 +0000

Your bug report

#69217: [PATCH] gnu: Add go-github-com-benbjohnson-clock.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
69217: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69217
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [PATCH] gnu: Add go-github-com-benbjohnson-clock.
From: "Artyom V. Poptsov" <[email-masked]>
To: [email-masked]
Date: Tue, 20 Feb 2024 00:00:54 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Closing as a duplicate of #69181.

- avp

-- 
Artyom "avp" Poptsov <[email-masked]>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

Subject: [PATCH] gnu: Add go-github-com-benbjohnson-clock.
From: "Artyom V. Poptsov" <[email-masked]>
To: [email-masked]
Date: Sat, 17 Feb 2024 21:57:44 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

this patch adds "go-github-com-benbjohnson-clock" package. [1]

Although the project is archived on GitHub it is required for the Kubo
(IPFS) package since version 0.20.0 up to 0.26.0 (which is the latest
version.) [2]
From 27c42ddecac1ead31a194503144cda2e1a8cd3e2 Mon Sep 17 00:00:00 2001
Message-ID: <27c42d[email-masked]>
From: "Artyom V. Poptsov" <[email-masked]>
Date: Sat, 17 Feb 2024 17:24:33 +0300
Subject: [PATCH] gnu: Add go-github-com-benbjohnson-clock.

* gnu/packages/golang-xyz.scm (go-github-com-benbjohnson-clock): New variable.

Change-Id: Ifcb3254e07388a6c7b4a7f9ee5dff4f3b4d25ee8
---
 gnu/packages/golang-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index b0a5955405..716b199951 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -146,6 +146,31 @@ (define-public go-github-com-armon-go-radix
 @url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.")
     (license license:expat)))
 
+(define-public go-github-com-benbjohnson-clock
+  (package
+    (name "go-github-com-benbjohnson-clock")
+    (version "1.3.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/benbjohnson/clock")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1p7n09pywqra21l981fbkma9vzsyf31pbvw6xg5r4hp8h8scf955"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/benbjohnson/clock"
+       #:go ,go-1.21))
+    (home-page "https://github.com/benbjohnson/clock")
+    (synopsis "Small library for mocking time in Go")
+    (description
+     "@code{clock} is a small library for mocking time in Go.  It provides an
+interface around the standard library's @code{time} package so that the application
+can use the realtime clock while tests can use the mock clock.")
+    (license license:expat)))
+
 (define-public go-github-com-bitly-go-hostpool
   (package
     (name "go-github-com-bitly-go-hostpool")

base-commit: 3cf199dbcf85a44fa8370e786e568fc3feb7067c
-- 
2.41.0

Thanks,
- avp

References:
1. https://github.com/benbjohnson/clock
2. https://github.com/ipfs/kubo/blob/096f510ab206c119693f145bc3331eeb33a69e07/go.mod#L6

-- 
Artyom "avp" Poptsov <[email-masked]>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F