Subject: [bug#69170] [PATCH rust-team 36/46] gnu: Add rust-iptables-0.5.

From: Tomas Volf <[email-masked]>
Date: Thu, 15 Feb 2024 21:26:49 +0100

* gnu/packages/crates-io.scm (rust-iptables-0.5): New variable.

Change-Id: I8f164dd9af75fbafdc12a71169afaca01677c253
---
 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 7f4e01b4b1..c5c561805a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31153,6 +31153,28 @@ (define-public rust-ipnetwork-0.17
         ("rust-serde-derive" ,rust-serde-derive-1)
         ("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-iptables-0.5
+  (package
+    (name "rust-iptables")
+    (version "0.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "iptables" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0a96p8fq70v3z2rjf4c461pqhad6nkibs7sfgydkrf7ys1r0v7yk"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-nix" ,rust-nix-0.27)
+                       ("rust-regex" ,rust-regex-1))))
+    (home-page "https://github.com/yaa110/rust-iptables")
+    (synopsis "Rust bindings for iptables")
+    (description "Rust bindings for iptables.")
+    (license license:expat)))
+
 (define-public rust-is-debug-1
   (package
     (name "rust-is-debug")
-- 
2.41.0