guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 0872bba93adedf5252c5813a3c19fbf0cb5f8d92
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Oct 21 22:21:21 2025 +0100

    gnu: Add go-github-com-santhosh-tekuri-jsonschema-v6.
    
    * gnu/packages/golang-web.scm 
(go-github-com-santhosh-tekuri-jsonschema-v6): New variable.
    
    Change-Id: Ie12fbdb0e3cea68fa4f77f6b06098b9a71b8c1ff
---
 gnu/packages/golang-web.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 4c02152a07..7f3bd4fc9c 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -10217,6 +10217,39 @@ information or even the peer of a VETH interface.")
      "Package jsonschema provides json-schema compilation and validation.")
     (license license:asl2.0)))
 
+(define-public go-github-com-santhosh-tekuri-jsonschema-v6
+  (package
+    (inherit go-github-com-santhosh-tekuri-jsonschema-v5)
+    (name "go-github-com-santhosh-tekuri-jsonschema-v6")
+    (version "6.0.2")
+    (source
+     (origin (inherit
+              (package-source go-github-com-santhosh-tekuri-jsonschema-v5))
+             (method git-fetch)
+             (uri (git-reference
+                    (url "https://github.com/santhosh-tekuri/jsonschema";)
+                    (commit (string-append "v" version))))
+             (file-name (git-file-name name version))
+             (sha256
+              (base32 
"0d1mpp77a9080r7n45wi2avf2zpgjyvxk5zqzxdyd8q0rvb811h0"))))
+    (arguments
+     (substitute-keyword-arguments
+         (package-arguments go-github-com-santhosh-tekuri-jsonschema-v5)
+       ((#:import-path _) "github.com/santhosh-tekuri/jsonschema/v6")
+       ((#:test-flags _) #~'())
+       ((#:phases _ '%standard-phases)
+        #~(modify-phases %standard-phases
+          (add-after 'unpack 'remove-example-tests
+            (lambda* (#:key import-path #:allow-other-keys)
+              (with-directory-excursion (string-append "src/" import-path)
+                ;; Tests try to download from
+                ;; https://raw.githubusercontent.com/santhosh-tekuri/boon\
+                ;; /main/tests/examples/schema.json
+                (delete-file "example_http_test.go"))))))))
+    (propagated-inputs
+     (list go-github-com-dlclark-regexp2
+           go-golang-org-x-text))))
+
 (define-public go-github-com-schollz-peerdiscovery
   (package
     (name "go-github-com-schollz-peerdiscovery")

Reply via email to