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
This commit is contained in:
Sharlatan Hellseher 2025-08-14 14:14:15 +01:00
parent 470cd20e3a
commit 58f9f2a251
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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