gnu: Add go-github-com-jackc-puddle.

* gnu/packages/golang-xyz.scm (go-github-com-jackc-puddle,
go-github-com-jackc-puddle-v2): New variables.

Change-Id: I873dc9746eca089da32777b77bbb611a71fd35ef
This commit is contained in:
Sharlatan Hellseher 2024-12-12 20:32:06 +00:00
parent 861cc37a42
commit 1328492557
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -4673,6 +4673,56 @@ ABI}.")
time strings.")
(license license:expat)))
(define-public go-github-com-jackc-puddle
(package
(name "go-github-com-jackc-puddle")
(version "1.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jackc/puddle")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0382q7xjdw5wx6174i2sf4gnc5ppgj9snvrvh3rcnwg02yd0np38"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jackc/puddle"))
(native-inputs (list go-github-com-stretchr-testify))
(home-page "https://github.com/jackc/puddle")
(synopsis "Generic resource pool for Golang")
(description
"Puddle is a tiny generic resource pool library hat uses the standard
context library to signal cancellation of acquires. It is designed to contain
the minimum functionality required for a resource pool. It can be used
directly or it can be used as the base for a domain specific resource pool.
For example, a database connection pool may use puddle internally and
implement health checks and keep-alive behavior without needing to implement
any concurrent code of its own.")
(license license:expat)))
(define-public go-github-com-jackc-puddle-v2
(package
(inherit go-github-com-jackc-puddle)
(name "go-github-com-jackc-puddle-v2")
(version "2.2.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jackc/puddle")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0agbk4nnja0fahi8mjp1y5ac9vjsjhldjwx9zshw0zjqhaxmsk11"))))
(arguments
(list
#:import-path "github.com/jackc/puddle/v2"))
(propagated-inputs
(list go-golang-org-x-sync))))
(define-public go-github-com-jbenet-go-random
(package
(name "go-github-com-jbenet-go-random")