sharlatan pushed a commit to branch go-team in repository guix. commit b23048eaddb28f0203edd221b098342c44109c6e Author: Sharlatan Hellseher <sharlata...@gmail.com> AuthorDate: Thu Feb 13 11:58:41 2025 +0000
gnu: Add go-github-com-data-dog-go-sqlmock. * gnu/packages/golang-check.scm (go-github-com-data-dog-go-sqlmock): New variable. Change-Id: I81034c7457c26054f0daa102319c1db0baada921 --- gnu/packages/golang-check.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index d915abddf0..73db609ac7 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -341,6 +341,40 @@ test (using testing.TB's @code{TempDir}) and with a few helper methods.") strings which may be used in mock tests.") (license license:unlicense))) +(define-public go-github-com-data-dog-go-sqlmock + (package + (name "go-github-com-data-dog-go-sqlmock") + (version "1.5.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DATA-DOG/go-sqlmock") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vpvdx9hwmx9gm27aq5r5219xpaxz0gy4q1iqskk4saz05bspn0f")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/DATA-DOG/go-sqlmock" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-examples + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (delete-file-recursively "examples"))))))) + (propagated-inputs + (list go-github-com-kisielk-sqlstruct)) + (home-page "https://github.com/DATA-DOG/go-sqlmock") + (synopsis "SQL driver mock for Golang") + (description + "Package sqlmock is a mock library implementing sql driver. Which has +one and only purpose - to simulate any sql driver behavior in tests, without +needing a real database connection. It helps to maintain correct +@acronym{TDD, Test Driven Development} workflow.") + (license license:bsd-3))) + (define-public go-github-com-davecgh-go-spew (package (name "go-github-com-davecgh-go-spew")