From patchwork Mon Feb 20 21:21:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Enge X-Patchwork-Id: 47177 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 375BC16AE9; Mon, 20 Feb 2023 21:23:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 59C0816A66 for ; Mon, 20 Feb 2023 21:23:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUDcn-0000WD-7f; Mon, 20 Feb 2023 16:23:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUDcm-0000Vm-0H for guix-patches@gnu.org; Mon, 20 Feb 2023 16:23:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUDcl-0003PK-OI for guix-patches@gnu.org; Mon, 20 Feb 2023 16:23:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUDck-0006Qh-Cw for guix-patches@gnu.org; Mon, 20 Feb 2023 16:23:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60732] Review References: <20230111163659.wudbizhylifjt3nj@blackbox> In-Reply-To: <20230111163659.wudbizhylifjt3nj@blackbox> Resent-From: Andreas Enge Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Feb 2023 21:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60732 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60732@debbugs.gnu.org Received: via spool by 60732-submit@debbugs.gnu.org id=B60732.167692813024638 (code B ref 60732); Mon, 20 Feb 2023 21:23:02 +0000 Received: (at 60732) by debbugs.gnu.org; 20 Feb 2023 21:22:10 +0000 Received: from localhost ([127.0.0.1]:53823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUDbu-0006PK-03 for submit@debbugs.gnu.org; Mon, 20 Feb 2023 16:22:10 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:41656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUDbp-0006Oh-1x for 60732@debbugs.gnu.org; Mon, 20 Feb 2023 16:22:08 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 698571E26; Mon, 20 Feb 2023 22:21:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DoFadH8G4m3D; Mon, 20 Feb 2023 22:21:57 +0100 (CET) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0:b0aa:56dd:ae73:8afa]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 96BBF126; Mon, 20 Feb 2023 22:21:57 +0100 (CET) Date: Mon, 20 Feb 2023 22:21:56 +0100 From: Andreas Enge Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, attached is a patch with a slightly reworked description and commit message. I verified the license and built the package on x86_64. However, I am not sure about the tests; there is a subdirectory "test", but it is apparently not run by the standard procedure. Maybe it is not meant to be an automatic test? Then scapy.egg-info/requires.txt contains this: [basic] ipython [complete] ipython pyx cryptography>=2.0 matplotlib [docs] sphinx>=3.0.0 sphinx_rtd_theme>=0.4.3 tox>=3.0.0 So it looks like there are a number of propagated- and native-inputs that are missing. It would be good if someone could build and try the package. Someone who knows Python is needed, I give the task back :) Andreas From cc5e2cb341ae80c87f54fe0854ae8f5bc05a2a68 Mon Sep 17 00:00:00 2001 Message-Id: From: Gabriel Wicki Date: Mon, 9 Jan 2023 16:06:20 +0100 Subject: [PATCH] gnu: Add python-scapy. * gnu/packages/python-xyz.scm (python-scapy): New variable. --- gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 71a52a7ad8..af481fb9eb 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -132,6 +132,7 @@ ;;; Copyright © 2022 Garek Dyszel ;;; Copyright © 2022 Baptiste Strazzulla ;;; Copyright © 2022 Nicolas Graves +;;; Copyright © 2023 Gabriel Wicki ;;; ;;; This file is part of GNU Guix. ;;; @@ -1453,6 +1454,30 @@ (define-public python-psutil iotop, uptime, pidof, tty, taskset, pmap.") (license license:bsd-3))) +(define-public python-scapy + (package + (name "python-scapy") + (version "2.5.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "scapy" version)) + (sha256 + (base32 + "1hpbbmpcn4dwj3z7i7sz4cnbpkaf57p7mvl3p84x9n2gflmhq9jv")))) + (arguments + '(#:tests? #t)) ;no test + (build-system python-build-system) + (home-page "https://scapy.net") + (synopsis "Python network packet crafting library") + (description + "Scapy is a Python library and executable for interactively +manipulating network packets. It can forge or decode packets of a number +of protocols, send them on the wire, capture them, store or read them +using pcap files, match requests and replies, and so on. +It can handle tasks such as scanning, tracerouting, probing, unit tests, +attacks or network discovery.") + (license license:gpl2))) + (define-public python-shapely (package (name "python-shapely")