[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/21: gnu: go-github-com-99designs-keyring: Enable tests.
From: |
guix-commits |
Subject: |
03/21: gnu: go-github-com-99designs-keyring: Enable tests. |
Date: |
Fri, 26 Jul 2024 18:47:30 -0400 (EDT) |
sharlatan pushed a commit to branch go-team
in repository guix.
commit 51679b4a9a43349f5243211f056c4e6bb7e0b440
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Fri Jul 26 13:07:45 2024 +0100
gnu: go-github-com-99designs-keyring: Enable tests.
* gnu/packages/golang-crypto.scm (go-github-com-99designs-keyring):
Refresh package style and enable tests.
[arguments]: <#:phases>: Add 'disable-failing-test phase.
[native-inputs]: Add gnupg, go-github-com-stretchr-testify, and
password-store.
Change-Id: Id679e834180b9d5ad5e7c1c4ce009d17b3c3ab5f
---
gnu/packages/golang-crypto.scm | 31 +++++++++++++++++++++++++++----
1 file changed, 27 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/golang-crypto.scm b/gnu/packages/golang-crypto.scm
index 05d539a10a..fe6ce11398 100644
--- a/gnu/packages/golang-crypto.scm
+++ b/gnu/packages/golang-crypto.scm
@@ -46,12 +46,14 @@
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
+ #:use-module (gnu packages gnupg)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-web)
#:use-module (gnu packages golang-xyz)
+ #:use-module (gnu packages password-utils)
#:use-module (gnu packages specifications))
;;; Commentary:
@@ -214,6 +216,30 @@ primitives.")
(sha256
(base32 "0mkvy7scyq07rkqhabfmkd8imcm4h9y7zj9palj04znpihpixa5m"))))
(build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/99designs/keyring"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-failing-tests
+ (lambda* (#:key tests? unpack-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" unpack-path)
+ (substitute* (find-files "." "\\_test.go$")
+ ;; Disable test requring running DBus.
+ (("TestLibSecretKeysWhenEmpty")
+ "OffTestLibSecretKeysWhenEmpty")
+ (("TestLibSecretKeysWhenNotEmpty")
+ "OffTestLibSecretKeysWhenNotEmpty")
+ (("TestLibSecretGetWhenEmpty")
+ "OffTestLibSecretGetWhenEmpty")
+ (("TestLibSecretGetWhenNotEmpty")
+ "OffTestLibSecretGetWhenNotEmpty")
+ (("TestLibSecretRemoveWhenEmpty")
+ "OffTestLibSecretRemoveWhenEmpty")
+ (("TestLibSecretRemoveWhenNotEmpty")
+ "OffTestLibSecretRemoveWhenNotEmpty"))))))))
+ (native-inputs
+ (list gnupg go-github-com-stretchr-testify password-store))
(propagated-inputs
(list go-github-com-dvsekhvalnov-jose2go
go-github-com-godbus-dbus
@@ -222,9 +248,7 @@ primitives.")
go-github-com-mtibben-percent
go-golang-org-x-sys
go-golang-org-x-term))
- (arguments
- '(#:import-path "github.com/99designs/keyring"
- #:tests? #f)) ;XXX: tests require Vagrant
+ (home-page "https://github.com/99designs/keyring")
(synopsis "Go library providing a uniform interface for various secure
credential stores")
(description
@@ -235,7 +259,6 @@ workstations.
Currently Keyring supports the following backends: macOS/OSX Keychain, Windows
pcredential store, Pass, Secret Service, KDE Wallet, Encrypted File.")
- (home-page "https://github.com/99designs/keyring")
(license license:expat)))
(define-public go-github-com-aead-chacha20
- 19/21: gnu: go-github-com-emersion-go-message: Update to 0.18.1., (continued)
- 19/21: gnu: go-github-com-emersion-go-message: Update to 0.18.1., guix-commits, 2024/07/26
- 20/21: gnu: go-github-com-emersion-go-message: Move to golang-web., guix-commits, 2024/07/26
- 08/21: gnu: go-gopkg-in-ini-v1: Move to golang-xyz., guix-commits, 2024/07/26
- 13/21: gnu: packages/golang-web: Update module commentary., guix-commits, 2024/07/26
- 09/21: gnu: aws-vault: Update to 7.2.0., guix-commits, 2024/07/26
- 21/21: gnu: go-github-com-jhillyerd-enmime: Move to golang-web., guix-commits, 2024/07/26
- 02/21: gnu: go-github-com-99designs-go-keyring: Rename variable., guix-commits, 2024/07/26
- 16/21: gnu: Remove go-github-com-technoweenie-multipartstreamer., guix-commits, 2024/07/26
- 17/21: gnu: go-github-com-emersion-go-pgpmail: Update to 0.2.1., guix-commits, 2024/07/26
- 18/21: gnu: go-github-com-emersion-go-pgpmail: Enable tests., guix-commits, 2024/07/26
- 03/21: gnu: go-github-com-99designs-keyring: Enable tests.,
guix-commits <=
- 14/21: gnu: go-github-com-gatherstars-com-jwz: Move to golang-web., guix-commits, 2024/07/26
- 15/21: gnu: Remove go-github-com-go-telegram-bot-api-telegram-bot-api., guix-commits, 2024/07/26