mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
gnu: python-pyacoustid: Update to 1.3.0.
* gnu/packages/mp3.scm (python-pyacoustid): Update to 1.3.0. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Switch to gexps and search-input-file. <#:tests?>: Disable tests. [native-inputs]: Add python-setuptools. Change-Id: I5d6d3dca71d42640fd549beecf1d97deb873d53a Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
83d5d289b9
commit
f4288ed165
1 changed files with 18 additions and 16 deletions
|
|
@ -727,29 +727,31 @@ FFmpeg, etc.")
|
|||
(define-public python-pyacoustid
|
||||
(package
|
||||
(name "python-pyacoustid")
|
||||
(version "1.2.2")
|
||||
(version "1.3.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "pyacoustid" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0ha15m41r8ckmanc4k9nrlb9hprvhdjxndzw40a1yj3z1b1xjyf2"))))
|
||||
(build-system python-build-system)
|
||||
"0xyikq3lqmqlm6b8nmmi6aijs4vz56svgcbhha8bp7n1j5qlhksz"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'chromaprint-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "chromaprint.py"
|
||||
(("libchromaprint.so.1")
|
||||
(string-append (assoc-ref inputs "chromaprint")
|
||||
"/lib/libchromaprint.so.1")))
|
||||
(substitute* "acoustid.py"
|
||||
(("'fpcalc'")
|
||||
(string-append "'" (assoc-ref inputs "chromaprint")
|
||||
"/bin/fpcalc'")))
|
||||
#t)))))
|
||||
(list
|
||||
#:tests? #f ;No tests.
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'chromaprint-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "chromaprint.py"
|
||||
(("libchromaprint.so.1")
|
||||
(search-input-file inputs "/lib/libchromaprint.so.1")))
|
||||
(substitute* "acoustid.py"
|
||||
(("(FPCALC_COMMAND.+)fpcalc" _ prefix)
|
||||
(string-append
|
||||
prefix (search-input-file inputs "/bin/fpcalc")))))))))
|
||||
(native-inputs
|
||||
(list python-setuptools))
|
||||
(inputs (list chromaprint))
|
||||
(propagated-inputs
|
||||
(list python-audioread python-requests))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue