guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 84b9934c2a8959d6cdacc8279dd2981a7c86ea33
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Jul 8 18:09:16 2025 +0100

    gnu: Add go-github-com-tj-go-elastic.
    
    * gnu/packages/golang-web.scm (go-github-com-tj-go-elastic): New variable.
    
    Change-Id: I51f23d747cb348cbe9d5902c7c9469e4a20116e6
---
 gnu/packages/golang-web.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 3738ab3c1d..098dd2d399 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -9094,6 +9094,51 @@ runtime.  It has zero dependencies, and doesn't rely on 
CGO.  This means you
 can run applications in other languages and still keep cross compilation.")
     (license license:asl2.0)))
 
+(define-public go-github-com-tj-go-elastic
+  (package
+    (name "go-github-com-tj-go-elastic")
+    (version "0.0.0-20171221160941-36157cbbebc2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/tj/go-elastic";)
+              (commit (go-version->git-ref version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1r94vc4hbfvqvjz74n4mvsw4dy3vbyzlivb90kyn8vn76a4wqk69"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/tj/go-elastic"
+      #:test-flags
+      #~(list "-skip" (string-join
+                       ;; Tests fail with assertion: unsupported protocol 
scheme.
+                       (list "TestClient_Bulk"
+                             "TestClient_Bulk_error"
+                             "TestClient_SearchIndex"
+                             "TestClient_Aliases"
+                             "TestIndexes_RemoveOlderThan"
+                             "TestClient_RemoveOldIndexes"
+                             "TestClient_SearchIndexString")
+                       "|"))
+      #:phases
+      #~(modify-phases %standard-phases
+          ;; Cycles with <github.com/apex/log>.
+          (add-after 'unpack 'remove-test-file
+            (lambda* (#:key tests? import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                (delete-file "batch/batch_test.go")))))))
+    (native-inputs
+     (list go-github-com-stretchr-testify))
+    (propagated-inputs
+     (list go-github-com-smartystreets-go-aws-auth))
+    (home-page "https://github.com/tj/go-elastic";)
+    (synopsis "Elasticsearch client with AWS sigv4 support")
+    (description
+     "Package elastic provides an Elasticsearch client with AWS sigv4 
support.")
+    (license license:expat)))
+
 (define-public go-github-com-tomnomnom-linkheader
   (package
     (name "go-github-com-tomnomnom-linkheader")

Reply via email to