~ruther/guix-local

ba17f399981f4f9f728902fe12896a750bf71856 — Sharlatan Hellseher 1 year, 1 month ago 57038b4
gnu: Add go-github-com-shirou-gopsutil-v4.

* gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil-v4): New variable.

Change-Id: I132f9fc722737442b2e8651799384138d6dec86a
1 files changed, 27 insertions(+), 0 deletions(-)

M gnu/packages/golang-xyz.scm
M gnu/packages/golang-xyz.scm => gnu/packages/golang-xyz.scm +27 -0
@@ 18090,6 18090,33 @@ sensors).")
      ;; 2. PlatformInformation() returns empty:
      #:test-flags #~(list "-skip" "TestUsers|TestPlatformInformation")))))

(define-public go-github-com-shirou-gopsutil-v4
  (package
    (inherit go-github-com-shirou-gopsutil-v3)
    (name "go-github-com-shirou-gopsutil-v4")
    (version "4.25.8")
    (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 "0q9125fpz4cw6mmxx7qa74qf3xq5x0nrraspfmwhlhdpabjag9lp"))))
    (arguments
     (list
      #:import-path "github.com/shirou/gopsutil/v4"
      ;; Three tests fail:
      ;; [1] error open /var/run/utmp: no such file or directory
      ;; [2] PlatformInformation() returns empty
      ;; [3] Could not get temperature
      #:test-flags #~(list "-skip" (string-join
                                    (list "TestUsers"               ;1
                                          "TestPlatformInformation" ;2
                                          "TestTemperatures")       ;3
                                    "|"))))))

(define-public go-github-com-shurcool-sanitized-anchor-name
  (package
    (name "go-github-com-shurcool-sanitized-anchor-name")