From f4288ed1650160e8a5addeab9bdb6b8378246420 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Mon, 22 Dec 2025 21:41:29 -0500 Subject: [PATCH] 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 --- gnu/packages/mp3.scm | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm index 339be893468..a9c54453998 100644 --- a/gnu/packages/mp3.scm +++ b/gnu/packages/mp3.scm @@ -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))