1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-17 12:30:38 +02:00

gnu: Add go-github-com-prometheus-common-sigv4.

* gnu/packages/prometheus.scm (go-github-com-prometheus-common-sigv4): New variable.

Change-Id: Id023eec48d48f53b70882809fad139362a48803c
This commit is contained in:
Sharlatan Hellseher 2024-07-24 22:07:40 +01:00
parent 310643fbaa
commit e654b7f937
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -207,6 +207,44 @@ metrics.")
"This package provides Prometheus assets.")
(license license:asl2.0)))
(define-public go-github-com-prometheus-common-sigv4
(package
(name "go-github-com-prometheus-common-sigv4")
(version "0.55.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/prometheus/common")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0bsbxil7qz8rhckhv0844nmn38g7i7347cjv5m6na47hbdpi0rqh"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/prometheus/common/sigv4"
#:unpack-path "github.com/prometheus/common"
#:phases
#~(modify-phases %standard-phases
(add-before 'unpack 'override-prometheus-common
(lambda _
(delete-file-recursively "src/github.com/prometheus/common"))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-aws-aws-sdk-go
go-github-com-prometheus-client-golang
go-github-com-prometheus-common
go-gopkg-in-yaml-v2))
(home-page "https://github.com/prometheus/common")
(synopsis "HTTP signed requests with Amazon's Signature Verification V4")
(description
"This package provides a @code{http.RoundTripper} that will sign requests
using Amazon's Signature Verification V4 signing procedure, using credentials
from the default AWS credential chain.")
(license license:asl2.0)))
;;;
;;; Executables:
;;;