guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 78831e0f31b3fe3680bdca82160c84d6a5488981
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Oct 25 15:57:48 2025 +0200

    gnu: python-pefile: Update to 2024.8.26.
    
    * gnu/packages/python-xyz.scm (python-pefile): Update to 2024.8.26.
    [source]: Switch to git-fetch.
    <snippet>: Remove encrypted test data.
    [build-system]: Switch to pyproject-build-system.
    [native-inputs]: Add python-setuptools.
    [description]: Improve style.
    
    Change-Id: Ib8a1d990870179f52485df9558ae502a3592334d
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++--------------
 1 file changed, 22 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 805c611bd4..b3c89c3018 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23437,23 +23437,31 @@ Format (DWARF).")
 (define-public python-pefile
   (package
     (name "python-pefile")
-    (version "2022.5.30")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/erocarrera/pefile";)
-                    (commit (string-append "v" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "1qj90a0s2gd5hn2zggypqc1077inid5dcl1fp5973b04kf2b9z8a"))))
-    (build-system python-build-system)
+    (version "2024.8.26")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/erocarrera/pefile";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "14bh23b7jipf2pxjivyn2khifal6fmk0pjsddrd3h1gd9n0wl9zd"))
+       (snippet #~(delete-file "tests/test_data.tar.bz2.enc"))))
+    (build-system pyproject-build-system)
+    (arguments
+     ;; XXX: Taken from tox.ini. Unclear why devs don't supply test data.
+     ;; It seems clear however that test_data.tar.bz2.enc needs to be
+     ;; decrypted and unpacked before we can run them.
+     (list #:test-flags #~(list "--ignore=tests/pefile_test.py")))
+    (native-inputs (list python-pytest python-setuptools))
     (propagated-inputs (list python-future))
     (home-page "https://github.com/erocarrera/pefile";)
     (synopsis "Portable Executable (PE) file parser")
-    (description "This python library provides interfaces for parsing and
-working with Portable Executable (PE) files.  It makes to most information
-from the header, as well as section details and data available.")
+    (description
+     "This python library provides interfaces for parsing and working with
+Portable Executable (PE) files.  It makes to most information from the header,
+as well as section details and data available.")
     (license license:expat)))
 
 (define-public python-pyemd

Reply via email to