efraim pushed a commit to branch rust-team
in repository guix.

commit 95d4abe617199146debce780454c5e1d4ffc4e36
Author: Efraim Flashner <[email protected]>
AuthorDate: Sun Dec 29 22:12:16 2024 +0200

    gnu: Add rust-sysinfo-0.32.
    
    * gnu/packages/crates-io.scm (rust-sysinfo-0.32): New variable.
    (rust-sysinfo-0.31): Inherit from rust-sysinfo-0.32.
    
    Change-Id: Idf093e561655a385adeab19d1044843e8c94595d
---
 gnu/packages/crates-io.scm | 49 ++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 41 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4f0d7b052d..b1f36fd55d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -80800,8 +80800,48 @@ information to the kernel using the sysctl interface.")
         ("rust-errno" ,rust-errno-0.2)
         ("rust-libc" ,rust-libc-0.2))))))
 
+(define-public rust-sysinfo-0.32
+  (package
+    (name "rust-sysinfo")
+    (version "0.32.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sysinfo" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1bzlj3afjz4ibdsfchjk1f4md6djffw668f3npiykwph38jcscsc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       '("--"
+         "--skip=common::network::tests::check_ip_networks"
+         "--skip=common::system::test::check_system_info"
+         "--skip=test::check_uid_gid"
+         "--skip=test_components"
+         "--skip=test_networks"
+         "--skip=test_process_disk_usage"
+         "--skip=test_wait_non_child")
+       #:cargo-inputs (("rust-core-foundation-sys" 
,rust-core-foundation-sys-0.8)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-memchr" ,rust-memchr-2)
+                       ("rust-ntapi" ,rust-ntapi-0.4)
+                       ("rust-rayon" ,rust-rayon-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-windows" ,rust-windows-0.57))
+       #:cargo-development-inputs (("rust-bstr" ,rust-bstr-1)
+                                   ("rust-serde-json" ,rust-serde-json-1)
+                                   ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/GuillaumeGomez/sysinfo";)
+    (synopsis "System handler to interact with processes")
+    (description
+     "This package is a library to get system information such as processes,
+processors, disks, components and networks.")
+    (license license:expat)))
+
 (define-public rust-sysinfo-0.31
   (package
+    (inherit rust-sysinfo-0.32)
     (name "rust-sysinfo")
     (version "0.31.4")
     (source
@@ -80811,7 +80851,6 @@ information to the kernel using the sysctl interface.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1gm1d4pxwnx4gmh6kwawchv8v8djb7y0a3qvbsq09cwrhx7vwp9m"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags (list "--release" "--"
                            ;; These files aren't available in the build 
environment.
@@ -80834,13 +80873,7 @@ information to the kernel using the sysctl interface.")
                        ("rust-windows" ,rust-windows-0.57))
        #:cargo-development-inputs (("rust-bstr" ,rust-bstr-1)
                                    ("rust-serde-json" ,rust-serde-json-1)
-                                   ("rust-tempfile" ,rust-tempfile-3))))
-    (home-page "https://github.com/GuillaumeGomez/sysinfo";)
-    (synopsis "System handler to interact with processes")
-    (description
-     "This package is a library to get system information such as processes,
-processors, disks, components and networks.")
-    (license license:expat)))
+                                   ("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-sysinfo-0.30
   (package

Reply via email to