guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 798e1e0c8e7b25cbd0982df98dde4344296d65ce
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Oct 28 11:33:49 2025 +0000

    gnu: binwalk: Move to firmware.
    
    * gnu/packages/python-xyz.scm (binwalk): Move from here ...
    * gnu/packages/firmware.scm: ... to here.
    * gnu/packages/diffoscope.scm: Add (gnu packages firmware) module.
    
    Change-Id: Id6c78aec4a576deaa99c7d3287338e2a9e2b9ca4
---
 gnu/packages/diffoscope.scm |  1 +
 gnu/packages/firmware.scm   | 46 ++++++++++++++++++++++++++++++++++++++++++---
 gnu/packages/python-xyz.scm | 39 --------------------------------------
 3 files changed, 44 insertions(+), 42 deletions(-)

diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm
index 005be166ba..3a91072609 100644
--- a/gnu/packages/diffoscope.scm
+++ b/gnu/packages/diffoscope.scm
@@ -35,6 +35,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages cpio)
   #:use-module (gnu packages dbm)
+  #:use-module (gnu packages firmware)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages gnome)
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm
index 35902eb501..e04e933f58 100644
--- a/gnu/packages/firmware.scm
+++ b/gnu/packages/firmware.scm
@@ -3,12 +3,14 @@
 ;;; Copyright © 2016 Eric Bavier <[email protected]>
 ;;; Copyright © 2017 David Craven <[email protected]>
 ;;; Copyright © 2017, 2018, 2022-2025 Efraim Flashner <[email protected]>
-;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <[email protected]>
-;;; Copyright © 2018 Vagrant Cascadian <[email protected]>
+;;; Copyright © 2018, 2020, 2021, 2022 Tobias Geerinckx-Rice <[email protected]>
+;;; Copyright © 2018, 2019 Vagrant Cascadian <[email protected]>
 ;;; Copyright © 2019 Mathieu Othacehe <[email protected]>
+;;; Copyright © 2020 Jakub Kądziołka <[email protected]>
 ;;; Copyright © 2020, 2021, 2022 Marius Bakke <[email protected]>
 ;;; Copyright © 2021 Petr Hodina <[email protected]>
-;;; Copyright © 2022, 2023, 2025 Maxim Cournoyer <[email protected]>
+;;; Copyright © 2021, 2022, 2023, 2025 Maxim Cournoyer <[email protected]>
+;;; Copyright © 2023 Hilton Chain <[email protected]>
 ;;; Copyright © 2023 Foundation Devices, Inc. <[email protected]>
 ;;; Copyright © 2023, 2024 Zheng Junjie <[email protected]>
 ;;; Copyright © 2024 Ricardo Wurmus <[email protected]>
@@ -215,6 +217,44 @@ assembler, disassembler, and debugging tools for the Linux 
kernel b43 wireless
 driver.")
       (license license:gpl2))))
 
+(define-public binwalk
+  (package
+    (name "binwalk")
+    ;; TODO: It's the latest non Rust version, see:
+    ;; <https://codeberg.org/guix/guix/issues/3919>.
+    (version "2.3.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/ReFirmLabs/binwalk";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0cfm1khckq986l0q68kmfyfagc6zmb94hgjjm847fjcil77dnlw6"))
+       (modules '((guix build utils)))
+       (snippet
+        #~(begin
+            (for-each delete-file
+                      (list "testing/tests/input-vectors/firmware.zip"
+                            "testing/tests/test_firmware_zip.py"))))))
+    (build-system pyproject-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'set-home
+           (lambda _
+             (setenv "HOME" ""))))))
+    (native-inputs
+     (list python-nose python-setuptools))
+    (home-page "https://github.com/ReFirmLabs/binwalk";)
+    (synopsis "Firmware analysis tool")
+    (description "Binwalk is a tool for analyzing, reverse engineering, and
+     extracting firmware images")
+    (license license:expat)))
+
+(define-deprecated-package python-binwalk binwalk)
+
 (define-public fwupd-efi
   (package
     (name "fwupd-efi")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ca4ab48c05..2d63f7e55f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23086,45 +23086,6 @@ pytest-fixtures-style dependency injection.")
      binary or text.")
     (license license:bsd-3)))
 
-(define-public binwalk
-  (package
-    (name "binwalk")
-    ;; TODO: It's the latest non Rust version, see:
-    ;; <https://codeberg.org/guix/guix/issues/3919>.
-    (version "2.3.4")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/ReFirmLabs/binwalk";)
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "0cfm1khckq986l0q68kmfyfagc6zmb94hgjjm847fjcil77dnlw6"))
-       (modules '((guix build utils)))
-       (snippet
-        #~(begin
-            (for-each delete-file
-                      (list "testing/tests/input-vectors/firmware.zip"
-                            "testing/tests/test_firmware_zip.py"))))))
-    (build-system pyproject-build-system)
-    (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'check 'set-home
-           (lambda _
-             (setenv "HOME" ""))))))
-    (native-inputs
-     (list python-nose python-setuptools))
-    (home-page "https://github.com/ReFirmLabs/binwalk";)
-    (synopsis "Firmware analysis tool")
-    (description "Binwalk is a tool for analyzing, reverse engineering, and
-     extracting firmware images")
-    (license license:expat)))
-
-(define-deprecated-package python-binwalk
-  binwalk)
-
 (define-public python-bson
   (package
     (name "python-bson")

Reply via email to