summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorAleksandr Lebedev <alex.lebedev2003@icloud.com>2025-11-05 10:39:39 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-11 14:38:43 +0000
commitccc510f8da2dfe7cc240b0fbb6b50642c4193963 (patch)
treee5fe08f3ac625f9db2f9e3ba42e5f528030c7065 /gnu/packages
parent7bab1008a3330b8dc927cf96b384af59b3b448b1 (diff)
gnu: Add go-github-com-danielgtaylor-huma-v2.
* gnu/packages/golang-web.scm (go-github-com-danielgtaylor-huma-v2): New variable. Change-Id: Icf4622bc3ea332260d5388be1aab9b491a27c40e Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/golang-web.scm51
1 files changed, 51 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 7ce055076db..5dee4657e47 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -2858,6 +2858,57 @@ Features:
2858@end itemize") 2858@end itemize")
2859 (license license:expat))) 2859 (license license:expat)))
2860 2860
2861(define-public go-github-com-danielgtaylor-huma-v2
2862 (package
2863 (name "go-github-com-danielgtaylor-huma-v2")
2864 (version "2.34.1")
2865 (source
2866 (origin
2867 (method git-fetch)
2868 (uri (git-reference
2869 (url "https://github.com/danielgtaylor/huma")
2870 (commit (string-append "v" version))))
2871 (file-name (git-file-name name version))
2872 (sha256
2873 (base32 "1rwmyxihrdznfn6iqxrb4lmlfijblapnpxavmcgavylixwigyrdk"))))
2874 (build-system go-build-system)
2875 (arguments
2876 (list
2877 #:import-path "github.com/danielgtaylor/huma/v2"
2878 #:test-flags
2879 ;; Tests require local network setup.
2880 #~(list "-skip" "TestFeatures|TestAdapters/go|ExampleResolver")
2881 #:phases
2882 #~(modify-phases %standard-phases
2883 (add-after 'unpack 'remove-examples
2884 (lambda* (#:key import-path #:allow-other-keys)
2885 (with-directory-excursion (string-append "src/" import-path)
2886 (delete-file-recursively "examples")))))))
2887 (native-inputs
2888 (list go-github-com-stretchr-testify))
2889 (propagated-inputs
2890 (list go-github-com-danielgtaylor-shorthand-v2
2891 go-github-com-evanphx-json-patch-v5
2892 go-github-com-fxamacker-cbor-v2
2893 go-github-com-gin-gonic-gin
2894 go-github-com-go-chi-chi-v5
2895 go-github-com-gofiber-fiber-v2
2896 go-github-com-google-uuid
2897 go-github-com-gorilla-mux
2898 go-github-com-julienschmidt-httprouter
2899 go-github-com-labstack-echo-v4
2900 go-github-com-spf13-cobra
2901 go-github-com-spf13-pflag
2902 go-github-com-uptrace-bunrouter))
2903 (home-page "https://github.com/danielgtaylor/huma")
2904 (synopsis "REST/HTTP API Framework for Golang")
2905 (description
2906 "This package provides a framework for building REST APIs in Go. It is
2907designed to generate @code{OpenAPI} 3.1 specifications and JSON Schema
2908documents describing the API and providing a quick & easy way to generate
2909docs, mocks, SDKs, CLI clients, and more.")
2910 (license license:expat)))
2911
2861(define-public go-github-com-datadog-datadog-go 2912(define-public go-github-com-datadog-datadog-go
2862 (package 2913 (package
2863 (name "go-github-com-datadog-datadog-go") 2914 (name "go-github-com-datadog-datadog-go")