Subject: [PATCH 067/156] gnu: Add rust-ipnetwork-0.20.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:52:44 +0100

* gnu/packages/crates-io.scm (rust-ipnetwork-0.20): New variable.
(rust-ipnetwork-0.17): Inherit from rust-ipnetwork-0.20.

Change-Id: Ie6268112b4ad172dc414502f34bd2ef716ffa7fa
---
 gnu/packages/crates-io.scm | 31 ++++++++++++++++++++++++-------
 1 file changed, 24 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6795db803ff..749367f175c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34820,8 +34820,31 @@ (define-public rust-ipnet-2
 stable toolchain.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-ipnetwork-0.20
+  (package
+    (name "rust-ipnetwork")
+    (version "0.20.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ipnetwork" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03hhmxyimz0800z44wl3z1ak8iw91xcnk7sgx5p5jinmx50naimz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-schemars" ,rust-schemars-0.8)
+                       ("rust-serde" ,rust-serde-1))))
+    (home-page "https://crates.io/crates/ipnetwork")
+    (synopsis "Work with IP CIDRs in Rust")
+    (description "This package provides a library to work with IP CIDRs in
+Rust.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ipnetwork-0.17
   (package
+    (inherit rust-ipnetwork-0.20)
     (name "rust-ipnetwork")
     (version "0.17.0")
     (source
@@ -34832,19 +34855,13 @@ (define-public rust-ipnetwork-0.17
        (sha256
         (base32
          "0sviri9ksb3cmhx3h0rcfy8pvpx7f0cx5ba1z87ydvf07amymhq2"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-serde" ,rust-serde-1))
        #:cargo-development-inputs
        (("rust-criterion" ,rust-criterion-0.3)
         ("rust-serde-derive" ,rust-serde-derive-1)
-        ("rust-serde-json" ,rust-serde-json-1))))
-    (home-page "https://crates.io/crates/ipnetwork")
-    (synopsis "Work with IP CIDRs in Rust")
-    (description "This package provides a library to work with IP CIDRs in
-Rust.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-serde-json" ,rust-serde-json-1))))))
 
 (define-public rust-is-debug-1
   (package
-- 
2.41.0