guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

230/244: gnu: Add go-github-com-coder-quartz.


From: guix-commits
Subject: 230/244: gnu: Add go-github-com-coder-quartz.
Date: Fri, 28 Mar 2025 20:18:28 -0400 (EDT)

sharlatan pushed a commit to branch go-team
in repository guix.

commit a9eb8956d59ab1342897e7cd957015a0435f2777
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Mar 28 21:08:20 2025 +0000

    gnu: Add go-github-com-coder-quartz.
    
    * gnu/packages/golang-check.scm (go-github-com-coder-quartz): New variable.
    
    Change-Id: Ib9ed659959961e6df57bbbd29818dc794f1720d5
---
 gnu/packages/golang-check.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm
index a2741ae6c9..47c71401d1 100644
--- a/gnu/packages/golang-check.scm
+++ b/gnu/packages/golang-check.scm
@@ -343,6 +343,33 @@ test (using testing.TB's @code{TempDir}) and with a few 
helper methods.")
      "A testing library for Go programs.")
     (license license:expat)))
 
+(define-public go-github-com-coder-quartz
+  (package
+    (name "go-github-com-coder-quartz")
+    (version "0.1.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/coder/quartz";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "08ghwy4i4h9shxchcly69pqprqqcs7pcvaprc7kjgghbvwbgr69k"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/coder/quartz"))
+    (home-page "https://github.com/coder/quartz";)
+    (synopsis "Golang time testing library for writing deterministic unit 
tests")
+    (description
+     "Package quartz is a library for testing time related code.  It exports
+an interface Clock that mimics the standard library time package functions.
+In production, an implementation that calls thru to the standard library is
+used.  In testing, a Mock clock is used to precisely control and intercept
+time functions.")
+    (license license:cc0)))
+
 (define-public go-github-com-corpix-uarand
   (package
     (name "go-github-com-corpix-uarand")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]