[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: Add go-github-com-matryer-try.
From: |
guix-commits |
Subject: |
04/06: gnu: Add go-github-com-matryer-try. |
Date: |
Tue, 30 Jan 2024 18:02:52 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit aab6ea6f41fcabd183b8cc6ad25b1fbd8ca64621
Author: Thomas Ieong <th.ieong@free.fr>
AuthorDate: Sat Mar 4 00:01:55 2023 +0100
gnu: Add go-github-com-matryer-try.
* gnu/packages/golang-check.scm (go-github-com-matryer-try): New variable.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: Ic354425938374fcd29e871a597da63a7a390cfa1
---
gnu/packages/golang-xyz.scm | 37 ++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 778868001d..c58228ec44 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -23,7 +23,8 @@
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
- #:use-module (gnu packages))
+ #:use-module (gnu packages)
+ #:use-module (gnu packages golang-check))
;;; Commentary:
;;;
@@ -55,6 +56,40 @@
atimes for files.")
(license license:expat)))
+(define-public go-github-com-matryer-try
+ (package
+ (name "go-github-com-matryer-try")
+ (version "1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/matryer/try")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "15f0m5ywihivnvwzcw0mh0sg27aky9rkywvxqszxka9q051qvsmy"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/matryer/try"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda* (#:key import-path #:allow-other-keys)
+ (substitute* (string-append "src/" import-path
+ "/try_test.go")
+ (("var value string")
+ "")
+ (("value, err = SomeFunction\\(\\)")
+ "_, err = SomeFunction()")))))))
+ (native-inputs
+ (list go-github-com-cheekybits-is))
+ (home-page "https://github.com/matryer/try")
+ (synopsis "Simple idiomatic retry package for Go")
+ (description "This package provides an idiomatic Go retry module.")
+ (license license:expat)))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
- branch master updated (f6bbee5f05 -> 7a63fba807), guix-commits, 2024/01/30
- 03/06: gnu: Add go-github-com-djherbis-atime., guix-commits, 2024/01/30
- 01/06: gnu: go-github-com-go-jose-go-jose-v3: Move to (gnu packages golang-web)., guix-commits, 2024/01/30
- 05/06: gnu: Add minify., guix-commits, 2024/01/30
- 06/06: teams: go: Add golang-xyz.scm to scope., guix-commits, 2024/01/30
- 02/06: gnu: Add (gnu packages golang-xyz) module., guix-commits, 2024/01/30
- 04/06: gnu: Add go-github-com-matryer-try.,
guix-commits <=