guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 58f9f2a2517df41ce504fce394836193707d5a08
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Thu Aug 14 14:14:15 2025 +0100

    gnu: python-wavefile: Update to 1.6.3.
    
    * gnu/packages/python-xyz.scm (python-wavefile): Update to 1.6.3.
    [build-system]: Use pyproject.
    [arguments]: Use G-expressions.
    <test-flags>: Skip 4 problematic tests.
    [native-inputs]: Add python-pytest, python-pytest-cov, and
    python-setuptools-next.
    
    Change-Id: I5facf2a0cc21c1cabcc8d04464dc6c2328439ebf
---
 gnu/packages/python-xyz.scm | 52 +++++++++++++++++++++++++++++----------------
 1 file changed, 34 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3084f07344..42939c2b72 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5853,26 +5853,42 @@ audio playback capability for Python 3 on OSX, Windows, 
and Linux.")
 (define-public python-wavefile
   (package
     (name "python-wavefile")
-    (version "1.6.2")
-    (source (origin
-              (method url-fetch)
-              (uri (pypi-uri "wavefile" version))
-              (sha256
-               (base32
-                "04mdcxq7n1vnwb9y65j0cwpy91ik5rh9vki1f45xqnh4ygz91n75"))))
-    (build-system python-build-system)
+    (version "1.6.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "wavefile" version))
+       (sha256
+        (base32 "120r003xy0cv6a4d4cjxv140im007klgkvzfgc57m70rcbnggi7p"))))
+    (build-system pyproject-build-system)
     (arguments
-     (list #:phases
-           #~(modify-phases %standard-phases
-               (add-after 'unpack 'patch-libsndfile-path
-                 (lambda* (#:key inputs #:allow-other-keys)
-                   (substitute* "wavefile/libsndfile.py"
-                     (("'libsndfile")
-                      (string-append "'" (assoc-ref inputs "libsndfile")
-                                     "/lib/libsndfile"))))))))
+     (list
+      #:test-flags
+      #~(list "-k" (string-join
+                    ;; Assertion fail to compare files.
+                    (list "not test_allFormats"
+                          "test_commonFormats"
+                          "test_majorFormats"
+                          "test_subtypeFormats")
+                    " and not "))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'patch-libsndfile-path
+            (lambda _
+              (substitute* "wavefile/libsndfile.py"
+                (("'libsndfile")
+                 (string-append "'" #$(this-package-input "libsndfile")
+                                "/lib/libsndfile"))))))))
+    (native-inputs
+     (list python-pytest
+           python-pytest-cov
+           python-setuptools-next))
     (inputs
-     (list libsndfile portaudio))
-    (propagated-inputs (list python-numpy python-pyaudio))
+     (list libsndfile
+           portaudio))
+    (propagated-inputs
+     (list python-numpy
+           python-pyaudio))
     (home-page "https://github.com/vokimon/python-wavefile";)
     (synopsis "Pythonic audio file reader and writer")
     (description

Reply via email to