sharlatan pushed a commit to branch go-team in repository guix. commit b3aa67532975f23da0367246209599d460c91909 Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Sun Dec 22 01:15:37 2024 +0000
gnu: Add go-github-com-elazarl-goproxy. * gnu/packages/golang-web.scm (go-github-com-elazarl-goproxy): New variable. Change-Id: I64ea5f0f92713094f2b15d1677ad425945507484 --- gnu/packages/golang-web.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 3fcf073796..5757945fef 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -1294,6 +1294,51 @@ client in Golang.") (modify-inputs (package-native-inputs go-github-com-datadog-datadog-go) (append go-github-com-golang-mock))))) +(define-public go-github-com-elazarl-goproxy + (package + (name "go-github-com-elazarl-goproxy") + (version "0.0.0-20241221210044-9faedc2f9e9f") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/elazarl/goproxy") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0j3v0y18igr3wy9vbwyg19fzy12jc41kmpfcz2jh1dnk6kxn2n67")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/elazarl/goproxy" + #:test-flags + #~(list "-skip" (string-join + ;; Networking or curl are required. + (list "TestCurlMinusP" + "TestSimpleHttpRequest" + "TestBasicConnectAuthWithCurl" + "TestBasicAuthWithCurl" + "TestConstantImageHandler" + "TestImageHandler" + "TestReplaceImage") + "|")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) + (propagated-inputs + (list go-golang-org-x-net)) + (home-page "https://github.com/elazarl/goproxy") + (synopsis "HTTP proxy library for Go") + (description + "GoProxy is a library to create a customized HTTP/HTTPS proxy server +using Go (aka Golang), with several configurable settings available. The +target of this project is to offer an optimized proxy server, usable with +reasonable amount of traffic, yet customizable and programmable.") + (license license:bsd-3))) + (define-public go-github-com-emersion-go-imap (package (name "go-github-com-emersion-go-imap")