gnu: Add go-github-com-elazarl-goproxy.

* gnu/packages/golang-web.scm (go-github-com-elazarl-goproxy): New variable.

Change-Id: I64ea5f0f92713094f2b15d1677ad425945507484
This commit is contained in:
Sharlatan Hellseher 2024-12-22 01:15:37 +00:00
parent 5f6cc183a2
commit 58269b6d58
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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")