dev-python/pyacoustid - 1.3.1 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/pyacoustid-1.3.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pyacoustid-1.3.1

Or alternatively:

emerge --autounmask-write -a =dev-python/pyacoustid-1.3.1

Package Information

Description:
Python bindings for Chromaprint and the AcoustID web service
Homepage:
https://github.com/beetbox/pyacoustid/ https://pypi.org/project/pyacoustid/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.3.1 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=poetry
PYPI_VERIFY_REPO=https://github.com/beetbox/pyacoustid
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 ~x86"
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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/pyacoustid | euse -E <flag> -p dev-python/pyacoustid | euse -D <flag> -p dev-python/pyacoustid

Global/Standard Flags

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/audioread[,ffmpeg]
	dev-python/requests[]
	media-libs/chromaprint