[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/37: gnu: go-github-com-shirou-gopsutil: Update to 2.21.11.
From: |
guix-commits |
Subject: |
05/37: gnu: go-github-com-shirou-gopsutil: Update to 2.21.11. |
Date: |
Wed, 6 Mar 2024 18:46:17 -0500 (EST) |
sharlatan pushed a commit to branch master
in repository guix.
commit 12b8b129b3691eca101b6928a8dedd567cb1cb32
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sat Feb 24 09:19:28 2024 +0100
gnu: go-github-com-shirou-gopsutil: Update to 2.21.11.
* gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil): Update to
2.21.11.
[arguments]: Fix tests.
<#:go>: Update to go-1.18.
<#:phases>: Add 'remove-v3 and 'remove-failing-tests phases.
[propagated-inputs]: Add go-golang-org-x-sys.
[native-inputs]: Add go-github-com-stretchr-testify and procps.
* gnu/packages/golang-xyz.scm: Add (gnu packages linux) module.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
---
gnu/packages/golang-xyz.scm | 63 +++++++++++++++++++++++++++++----------------
1 file changed, 41 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 09b20a4830..09e294e298 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -46,7 +46,8 @@
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression)
- #:use-module (gnu packages golang-crypto))
+ #:use-module (gnu packages golang-crypto)
+ #:use-module (gnu packages linux))
;;; Commentary:
;;;
@@ -1095,29 +1096,47 @@ Metrics library.")
(license license:bsd-2))))
(define-public go-github-com-shirou-gopsutil
- (let ((commit "47ef3260b6bf6ead847e7c8fc4101b33c365e399")
- (revision "0"))
- (package
- (name "go-github-com-shirou-gopsutil")
- (version (git-version "v2.19.7" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/shirou/gopsutil")
- (commit commit))) ; XXX
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0x1g4r32q4201nr2b754xnrrndmwsrhfr7zg37spya86qrmijnws"))))
- (build-system go-build-system)
- (arguments
- '(#:import-path "github.com/shirou/gopsutil"))
- (synopsis "Process and system monitoring in Go")
- (description "This package provides a library for retrieving information
+ (package
+ (name "go-github-com-shirou-gopsutil")
+ (version "2.21.11")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/shirou/gopsutil")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0gpb10xkdwfimn1sp4jhrvzz4p3zgmdb78q8v23nap3yi6v4bff5"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:go go-1.18
+ #:import-path "github.com/shirou/gopsutil"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-v3
+ (lambda* (#:key import-path #:allow-other-keys)
+ ;; We remove the separately included v3 module.
+ (delete-file-recursively (string-append "src/"
+ import-path
+ "/v3"))))
+ (add-before 'check 'remove-failing-tests
+ (lambda* (#:key import-path #:allow-other-keys)
+ (delete-file-recursively
+ ;; host_test.go tries to access files such as
+ ;; /var/run/utmp that do not exist in the build
+ ;; environment.
+ (string-append "src/" import-path
"/host/host_test.go")))))))
+ (propagated-inputs
+ (list go-github-com-tklauser-go-sysconf go-golang-org-x-sys))
+ (native-inputs
+ (list go-github-com-stretchr-testify procps))
+ (synopsis "Process and system monitoring in Go")
+ (description "This package provides a library for retrieving information
on running processes and system utilization (CPU, memory, disks, network,
sensors).")
- (home-page "https://github.com/shirou/gopsutil")
- (license license:bsd-3))))
+ (home-page "https://github.com/shirou/gopsutil")
+ (license license:bsd-3)))
(define-public go-github-com-skip2-go-qrcode
(package
- 34/37: gnu: go-github-com-hashicorp-go-version: Update to 1.6.0., (continued)
- 34/37: gnu: go-github-com-hashicorp-go-version: Update to 1.6.0., guix-commits, 2024/03/06
- 10/37: gnu: go-github-com-cheggaaa-pb-v3: Remove unnecessary inputs., guix-commits, 2024/03/06
- 16/37: gnu: Add go-github-com-hhrutter-tiff., guix-commits, 2024/03/06
- 28/37: gnu: Add go-github-com-hashicorp-errwrap., guix-commits, 2024/03/06
- 29/37: gnu: Add go-github-com-hashicorp-go-multierror., guix-commits, 2024/03/06
- 32/37: gnu: go-github-com-spf13-viper: Remove input labels., guix-commits, 2024/03/06
- 37/37: gnu: go-github-com-hashicorp-hcl-v2: Move to golang-xyz., guix-commits, 2024/03/06
- 36/37: gnu: go-github-com-hashicorp-hcl: Move to golang-xyz., guix-commits, 2024/03/06
- 35/37: gnu: go-github-com-hashicorp-go-version: Fix indentation., guix-commits, 2024/03/06
- 11/37: gnu: go-github-com-vividcortex-ewma: Update description., guix-commits, 2024/03/06
- 05/37: gnu: go-github-com-shirou-gopsutil: Update to 2.21.11.,
guix-commits <=
- 15/37: gnu: Add go-github-com-hhrutter-lzw., guix-commits, 2024/03/06
- 17/37: gnu: go-github.com-ulikunitz-xz: Adjust name., guix-commits, 2024/03/06
- 33/37: gnu: go-github-com-hashicorp-go-version: Move to golang-xyz., guix-commits, 2024/03/06
- 31/37: gnu: go-github-com-hashicorp-go-uuid: Move to golang-xyz., guix-commits, 2024/03/06