Subject: [bug#66257] [PATCH] Add python-icmplib.

From: "Wicki Gabriel (wicg)" <[email-masked]>
Date: Thu, 28 Sep 2023 12:34:44 +0000

Add the python equivalent of the ICMP utilities (ping and similar).

--
Gabriel Wicki
Research Assistant

ZHAW, Zurich University of Applied Sciences
InES, Institute of Embedded Systems
High Integrity Systems Group

Technikumstrasse 22, Postfach
CH-8401 Winterthur
--
E-Mail: [email-masked]
Web: http://ines.zhaw.ch
From 8a28765a75fd4459056c2d3baace28d9a2e5ced4 Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Gabriel Wicki <[email-masked]>
Date: Thu, 28 Sep 2023 14:25:44 +0200
Subject: [PATCH] gnu: Add python-icmplib.

* gnu/packages/python-xyz.scm (python-icmplib): New variable.
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index be03c2a7da..18660ebf20 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1802,6 +1802,28 @@ (define-public python-scapy
 attacks or network discovery.")
     (license license:gpl2)))
 
+(define-public python-icmplib
+  (package
+    (name "python-icmplib")
+    (version "3.0.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "icmplib" version))
+       (sha256
+        (base32 "1yssh1bsymlcwmvfag47wg1x9axl6i0zwzywxv1abzz0ndmdmyz4"))))
+    (arguments
+     '(#:tests? #f)) ;test data not present
+    (build-system python-build-system)
+    (home-page "https://github.com/ValentinBELYN/icmplib")
+    (synopsis
+     "Python implementation of the Internet Control Message Protocol (ICMP)")
+    (description
+     "@code{icmplib} is a supporting library for both IPv4 and IPv6 networks.
+ICMP is typically used for diagnostic or control purposes - well known from
+utilities such as ping(1).")
+    (license license:lgpl3)))
+
 (define-public python-rasterio
   (package
     (name "python-rasterio")

base-commit: 3963fa1a465708690cd1554d911613f1c92f5eef
-- 
2.41.0