mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add python-soundfile.
* gnu/packages/audio.scm (python-soundfile): New variable.
This commit is contained in:
parent
6623d1cd7f
commit
5893257626
1 changed files with 35 additions and 0 deletions
|
@ -85,6 +85,7 @@ (define-module (gnu packages audio)
|
|||
#:use-module (gnu packages icu4c)
|
||||
#:use-module (gnu packages image)
|
||||
#:use-module (gnu packages libbsd)
|
||||
#:use-module (gnu packages libffi)
|
||||
#:use-module (gnu packages libusb)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages llvm)
|
||||
|
@ -2427,6 +2428,40 @@ (define-public python-pyliblo
|
|||
(define-public python2-pyliblo
|
||||
(package-with-python2 python-pyliblo))
|
||||
|
||||
(define-public python-soundfile
|
||||
(package
|
||||
(name "python-soundfile")
|
||||
(version "0.10.3.post1")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "SoundFile" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0yqhrfz7xkvqrwdxdx2ydy4h467sk7z3gf984y1x2cq7cm1gy329"))))
|
||||
(build-system python-build-system)
|
||||
(propagated-inputs
|
||||
`(("python-cffi" ,python-cffi)
|
||||
("python-numpy" ,python-numpy)
|
||||
("libsndfile" ,libsndfile)))
|
||||
(native-inputs
|
||||
`(("python-pytest" ,python-pytest)))
|
||||
(arguments
|
||||
`(#:tests? #f ; missing OGG support
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "soundfile.py"
|
||||
(("_find_library\\('sndfile'\\)")
|
||||
(string-append "\"" (assoc-ref inputs "libsndfile")
|
||||
"/lib/libsndfile.so\""))))))))
|
||||
(home-page "https://github.com/bastibe/SoundFile")
|
||||
(synopsis "Python bindings for libsndfile")
|
||||
(description "This package provides python bindings for libsndfile based on
|
||||
CFFI and NumPy.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public lilv
|
||||
(package
|
||||
(name "lilv")
|
||||
|
|
Loading…
Reference in a new issue