diff mbox series

[bug#54560,41/47] gnu: Add go-github-com-go-openapi-strfmt.

Message ID 20220325133211.5128-41-hello@lnikki.la
State New
Headers show
Series [bug#54560,01/47] gnu: Add go-google-golang-org-protobuf. | expand

Commit Message

Leo Nikkilä March 25, 2022, 1:32 p.m. UTC
* gnu/packages/golang.scm (go-github-com-go-openapi-strfmt): New
variable.
---
 gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e6d7ab5518..8256ad5ad6 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10232,6 +10232,38 @@  (define-public go-github-com-go-openapi-spec
     (home-page "https://github.com/go-openapi/spec")
     (license license:asl2.0)))
 
+(define-public go-github-com-go-openapi-strfmt
+  (package
+    (name "go-github-com-go-openapi-strfmt")
+    (version "0.21.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/go-openapi/strfmt")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "010wpkk1mc6k1qi5fs23fphxik4yp3mjfg330dwhqa17njacr6dx"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/go-openapi/strfmt"))
+    (propagated-inputs (list go-github-com-asaskevich-govalidator
+                             go-github-com-go-openapi-errors
+                             go-github-com-google-uuid
+                             go-github-com-mitchellh-mapstructure
+                             go-github-com-oklog-ulid
+                             go-go-mongodb-org-mongo-driver))
+    (native-inputs (list go-github-com-stretchr-testify))
+    (synopsis "OpenAPI toolkit common string formats")
+    (description
+     "This package exposes a registry of data types to support string
+formats in the @code{go-openapi} toolkit.  @code{strfmt} represents a
+well known string format such as credit card or email.  The Go toolkit
+for OpenAPI specifications knows how to deal with those.")
+    (home-page "https://github.com/go-openapi/strfmt")
+    (license license:asl2.0)))
+
 (define-public go-github-com-go-openapi-swag
   (package
     (name "go-github-com-go-openapi-swag")