commit:     7cbbb974006f0d24e41c42d46c1cce59310ec654
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sat May 31 22:39:22 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 31 23:53:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cbbb974

dev-python/pyacoustid: enable py3.13

Dropped keywords due to dependency audioread.

Bug: https://bugs.gentoo.org/952365
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42378
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/pyacoustid/pyacoustid-1.3.0-r1.ebuild | 51 ++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/dev-python/pyacoustid/pyacoustid-1.3.0-r1.ebuild 
b/dev-python/pyacoustid/pyacoustid-1.3.0-r1.ebuild
new file mode 100644
index 000000000000..8e9bfe179bdb
--- /dev/null
+++ b/dev-python/pyacoustid/pyacoustid-1.3.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Python bindings for Chromaprint and the AcoustID web service"
+HOMEPAGE="
+       https://github.com/beetbox/pyacoustid/
+       https://pypi.org/project/pyacoustid/
+"
+SRC_URI+="
+       test? (
+               
https://s3.wasabisys.com/blocsonic/releases/maxblocs/bsmx0198/01-Follow_192kb.mp3
+                       -> ${PN}-test.mp3
+       )
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples test"
+# Tests fail with network-sandbox, since they need to connect to acoustid.org
+PROPERTIES="test_network"
+RESTRICT="test"
+
+RDEPEND="
+       dev-python/audioread[${PYTHON_USEDEP},ffmpeg]
+       dev-python/requests[${PYTHON_USEDEP}]
+       media-libs/chromaprint
+"
+
+python_test() {
+       # Working test will print the top metadata match from Acoustid's 
database.
+       "${EPYTHON}" aidmatch.py "${DISTDIR}/${PN}-test.mp3" ||
+               die "Test failed with ${EPYTHON}"
+}
+
+src_install() {
+       distutils-r1_src_install
+
+       if use examples ; then
+               docinto examples
+               dodoc aidmatch.py fpcalc.py
+               docompress -x /usr/share/doc/${PF}/examples/
+       fi
+}

Reply via email to