Subject: [bug#69257] [PATCH rust-team v2 003/117] gnu: Add rust-pnet-sys-0.34.

From: Herman Rimm <[email-masked]>
Date: Sun, 28 Apr 2024 20:54:29 +0200

* gnu/packages/crates-io.scm (rust-pnet-sys-0.34): Add variable.
(rust-pnet-sys-0.27): Inherit rust-pnet-sys-0.34.

Change-Id: I00cfe081f4414616c7524af5093ebd639c8cd37f
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0322c5b93d..863fcbf594 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -53748,6 +53748,28 @@ (define-public rust-pnet-sys-0.34
      "This crate providess access to network related system function and calls.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pnet-sys-0.34
+  (package
+    (name "rust-pnet-sys")
+    (version "0.34.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pnet_sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "004d28vbaxv3m55cd741mpjm34031c3p2dpp8kazcwxms7n0nz21"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f  ; Tries to use sockets.
+       #:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page "https://github.com/libpnet/libpnet")
+    (synopsis "Access to network related system functions")
+    (description
+     "This crate providess access to network related system function and calls.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-pnet-sys-0.27
   (package
     (inherit rust-pnet-sys-0.34)
-- 
2.41.0