gnu: go-github-com-shirou-gopsutil-v3: Update to 3.24.5.

* gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil-v3): Update to 3.24.5.
[arguments] <import-path>: Fix it according to go.mod.
<phases>: Remove 'remove-failing-tests, utilize "-skip" instead.
<test-flags>: Skip 2 failing tests.

Change-Id: Ie172872815fb2371f02123e9743dfa370f7c2541
This commit is contained in:
Sharlatan Hellseher 2025-09-09 10:54:30 +01:00
parent b8c1f85369
commit 57038b42b2
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -18072,7 +18072,7 @@ sensors).")
(package (package
(inherit go-github-com-shirou-gopsutil) (inherit go-github-com-shirou-gopsutil)
(name "go-github-com-shirou-gopsutil-v3") (name "go-github-com-shirou-gopsutil-v3")
(version "3.24.2") (version "3.24.5")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -18081,19 +18081,14 @@ sensors).")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1xlfcx6giqaxdah2m02q2i8ynwlzar953wr8wqx1j3004xdgaivd")))) (base32 "1r561fs7q2m0m03k8yrx3dpldjik3vbfjyfz0lz90zz0xvbavkxm"))))
(arguments (arguments
(list (list
#:import-path "github.com/shirou/gopsutil" #:import-path "github.com/shirou/gopsutil/v3"
#:phases ;; Two tests fail:
#~(modify-phases %standard-phases ;; 1. error open /var/run/utmp: no such file or directory
(add-before 'check 'remove-failing-tests ;; 2. PlatformInformation() returns empty:
(lambda* (#:key import-path #:allow-other-keys) #:test-flags #~(list "-skip" "TestUsers|TestPlatformInformation")))))
(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")))))))))
(define-public go-github-com-shurcool-sanitized-anchor-name (define-public go-github-com-shurcool-sanitized-anchor-name
(package (package