~ruther/guix-local

58f9f2a2517df41ce504fce394836193707d5a08 — Sharlatan Hellseher 9 months ago 470cd20
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
1 files changed, 34 insertions(+), 18 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +34 -18
@@ 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