GNU bug report logs -
#76125
[PATCH] gnu: Add python-nmap.
Previous Next
To reply to this bug, email your comments to 76125 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org
:
bug#76125
; Package
guix-patches
.
(Fri, 07 Feb 2025 20:22:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
peter <at> polidoro.io
:
New bug report received and forwarded. Copy sent to
lars <at> 6xq.net, marius <at> gnu.org, me <at> bonfacemunyoki.com, sharlatanus <at> gmail.com, tanguy <at> bioneland.org, jgart <at> dismail.de, guix-patches <at> gnu.org
.
(Fri, 07 Feb 2025 20:22:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Peter Polidoro <peter <at> polidoro.io>
* gnu/packages/python-xyz.scm (python-nmap): New variable.
Change-Id: Ibc89f501e4d663e8661e3f988aa58e7544bde750
---
gnu/packages/python-xyz.scm | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 07d31570f1..b99ae55439 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -180,6 +180,7 @@
(define-module (gnu packages python-xyz)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
+ #:use-module (gnu packages admin)
#:use-module (gnu packages adns)
#:use-module (gnu packages aidc)
#:use-module (gnu packages algebra)
@@ -39226,6 +39227,27 @@ (define-public python-nfcpy
Communication.")
(license license:eupl1.1)))
+(define-public python-nmap
+ (package
+ (name "python-nmap")
+ (version "1.9.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "python3-nmap" version))
+ (sha256
+ (base32 "0b16ni4ywylj0k24x1pi6bp83d80wvd0ri2h225gmkgm2fqcyrc4"))))
+ (build-system pyproject-build-system)
+ (propagated-inputs (list python-simplejson nmap which))
+ (native-inputs (list python-setuptools python-wheel))
+ (home-page "https://github.com/nmmapper/python3-nmap")
+ (synopsis
+ "Python interface to the nmap utility for network discovery and security auditing")
+ (description
+ "This library helps use the nmap port scanner in Python, allowing
+automation of scanning tasks and reports.")
+ (license license:gpl3)))
+
(define-public python-clrprint
(package
(name "python-clrprint")
@@ -39237,7 +39259,7 @@ (define-public python-clrprint
(base32
"0xfn8d1by2w7pjiji887qljk1avn4fylbnz1mj28gysm5g0zvy43"))))
(build-system python-build-system)
- (arguments '(#:tests? #f)) ;there are no tests
+ (arguments '(#:tests? #f)) ;there are no tests
(propagated-inputs (list python-colorama python-termcolor))
(home-page "https://github.com/AbhijithAJ/clrprint")
(synopsis "Print colorful output in the terminal")
base-commit: 8455e44cbbe2b23cadb6e15fe1e40f92b8a5e581
--
2.48.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#76125
; Package
guix-patches
.
(Tue, 11 Feb 2025 20:20:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 76125 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Thank you for the patch.
--8<---------------cut here---------------start------------->8---
+ (propagated-inputs (list python-simplejson nmap which))
--8<---------------cut here---------------end--------------->8---
nmap and which need to be in inputs.
--8<---------------cut here---------------start------------->8---
+ (synopsis
+ "Python interface to the nmap utility for network discovery and security auditing")
--8<---------------cut here---------------end--------------->8---
It may be shorten to: "Python wraper to Nmap"
--8<---------------cut here---------------start------------->8---
+ (description
+ "This library helps use the nmap port scanner in Python, allowing
+automation of scanning tasks and reports.")
--8<---------------cut here---------------end--------------->8---
Maybe describe why this package may be helpful. Skiming the README it's
hard to deduce ...
e.g: "This package implements a functionality to wrap @code{nmap}
command into Python scripts, where each command invocation is wrapped
into function providing JSON output."
--8<---------------cut here---------------start------------->8---
(define-public python-clrprint
(package
(name "python-clrprint")
@@ -39237,7 +39259,7 @@ (define-public python-clrprint
(base32
"0xfn8d1by2w7pjiji887qljk1avn4fylbnz1mj28gysm5g0zvy43"))))
(build-system python-build-system)
- (arguments '(#:tests? #f)) ;there are no tests
+ (arguments '(#:tests? #f)) ;there are no tests
--8<---------------cut here---------------end--------------->8---
Please, apply to the right package ;-)
--8<---------------cut here---------------start------------->8---
+ #:use-module (gnu packages admin)
--8<---------------cut here---------------end--------------->8---
You may keep it there to reduce the number of cross references.
License looks correct as seen in LICENSE file:
--8<---------------cut here---------------start------------->8---
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
--8<---------------cut here---------------end--------------->8---
No related to the review comments, the value of the project is
questionable as Nmap provides a very powerful scripting in Lua
<https://nmap.org/book/nse-language.html>, why someone needs to reduce
tooling by wrapping it inside hacky Python script I'm doubt to say :-).
And the project admires that fact!
> Nmap is a complicated piece of software used for reconnaissance on
> target networks, over the years new features have been added making it
> more sophisticated.
Waiting for v2 to cover review points.
--
Oleg
[signature.asc (application/pgp-signature, inline)]
Added tag(s) moreinfo.
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 08 Mar 2025 17:06:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 96 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.