gnu: go-github-com-google-go-cmp-cmp: Improve package style.

* gnu/packages/golang.scm (go-github-com-google-go-cmp-cmp): Adjust
indentation.
[arguments]: Apply new package list style and G-expressions.
[home-page]: Move after [synopsis].

Change-Id: I14a8dfcbe8a17c98df7f880823cd9c35522f013b
This commit is contained in:
Sharlatan Hellseher 2024-07-19 21:46:03 +01:00
parent 1775f91de2
commit 770a668505
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -5933,33 +5933,34 @@ (define-public go-github-com-google-go-cmp-cmp
(package
(name "go-github-com-google-go-cmp-cmp")
(version "0.6.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/google/go-cmp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1n1j4hi50bl05pyys4i7y417k9g6k1blslj27z327qny7kkdl2ma"))))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/google/go-cmp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1n1j4hi50bl05pyys4i7y417k9g6k1blslj27z327qny7kkdl2ma"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/google/go-cmp/cmp"
#:unpack-path "github.com/google/go-cmp"
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs #:allow-other-keys #:rest args)
(unless
;; The tests fail when run with gccgo.
(false-if-exception (search-input-file inputs "/bin/gccgo"))
(apply (assoc-ref %standard-phases 'check) args)))))))
(list
#:import-path "github.com/google/go-cmp/cmp"
#:unpack-path "github.com/google/go-cmp"
#:phases
#~(modify-phases %standard-phases
(replace 'check
(lambda* (#:key inputs #:allow-other-keys #:rest args)
(unless
;; The tests fail when run with gccgo.
(false-if-exception (search-input-file inputs "/bin/gccgo"))
(apply (assoc-ref %standard-phases 'check) args)))))))
(synopsis "Determine equality of values in Go")
(home-page "https://github.com/google/go-cmp")
(description
"This package is intended to be a more powerful and safer
alternative to @@code{reflect.DeepEqual} for comparing whether two values are
alternative to @code{reflect.DeepEqual} for comparing whether two values are
semantically equal.")
(home-page "https://github.com/google/go-cmp")
(license license:bsd-3)))
(define-public go-github-com-google-uuid