From 0b896c96c42f345369e5b67216d8b8fe6dd6815c Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 14 Aug 2025 14:37:08 +0100 Subject: [PATCH] gnu: python-wavefile: Move to auidio. * gnu/packages/python-xyz.scm (python-wavefile): Move from here ... * gnu/packages/audio.scm: ... to here. Change-Id: Ib7d9415a157577f1740d0b0c4fff415241d569d2 --- gnu/packages/audio.scm | 47 +++++++++++++++++++++++++++++++++++++ gnu/packages/python-xyz.scm | 46 ------------------------------------ 2 files changed, 47 insertions(+), 46 deletions(-) diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 88aaff754e1988e11a76a4e4fcdca17ee03da18d..95c0de66eb8c8861c63daaf91b5b9a0720c0de72 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -50,6 +50,7 @@ ;;; Copyright © 2024 mio ;;; Copyright © 2024 Nikita Domnitskii ;;; Copyright © 2024 Roman Scherer +;;; Copyright © 2024 Sughosha ;;; Copyright © 2025 Junker ;;; Copyright © 2025 Sughosha ;;; Copyright © 2025 Andrew Wong @@ -3685,6 +3686,52 @@ one-dimensional sample-rate conversion library.") files.") (license license:expat))) +(define-public python-wavefile + (package + (name "python-wavefile") + (version "1.6.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "wavefile" version)) + (sha256 + (base32 "120r003xy0cv6a4d4cjxv140im007klgkvzfgc57m70rcbnggi7p")))) + (build-system pyproject-build-system) + (arguments + (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)) + (home-page "https://github.com/vokimon/python-wavefile") + (synopsis "Pythonic audio file reader and writer") + (description + "This package provides pythonic libsndfile wrapper to read and write audio +files.") + (license license:gpl3+))) + (define-public audio-to-midi (package (name "audio-to-midi") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 42939c2b72da195db80c480bde0df71c65040b4a..f4b3e35c349783cc4b18fd34de000a43bc9497f7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5850,52 +5850,6 @@ videos in a notebook.") audio playback capability for Python 3 on OSX, Windows, and Linux.") (license license:expat))) ; MIT license -(define-public python-wavefile - (package - (name "python-wavefile") - (version "1.6.3") - (source - (origin - (method url-fetch) - (uri (pypi-uri "wavefile" version)) - (sha256 - (base32 "120r003xy0cv6a4d4cjxv140im007klgkvzfgc57m70rcbnggi7p")))) - (build-system pyproject-build-system) - (arguments - (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)) - (home-page "https://github.com/vokimon/python-wavefile") - (synopsis "Pythonic audio file reader and writer") - (description - "This package provides pythonic libsndfile wrapper to read and write audio -files.") - (license license:gpl3+))) - (define-public python-jsonalias (package (name "python-jsonalias")