From e654b7f9376689f6316cfe41a036ac3ba93cfd7c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 24 Jul 2024 22:07:40 +0100 Subject: gnu: Add go-github-com-prometheus-common-sigv4. * gnu/packages/prometheus.scm (go-github-com-prometheus-common-sigv4): New variable. Change-Id: Id023eec48d48f53b70882809fad139362a48803c --- gnu/packages/prometheus.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/prometheus.scm b/gnu/packages/prometheus.scm index 717a5546f1..5ec4fe0b12 100644 --- a/gnu/packages/prometheus.scm +++ b/gnu/packages/prometheus.scm @@ -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: ;;; -- cgit v1.2.3