diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-13 04:43:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-13 04:43:25 +0100 |
commit | 7bb2a634b4e693c8545db3823c080e6edec25e77 (patch) | |
tree | 292ea8f5cd2042167674fa08e993aefc95f062d5 /dev-python/pyacoustid/pyacoustid-1.3.0.ebuild | |
parent | d24a417ad25a06bbd0cb13469ec2278ae8f33fba (diff) |
gentoo auto-resync : 13:09:2023 - 04:43:25
Diffstat (limited to 'dev-python/pyacoustid/pyacoustid-1.3.0.ebuild')
-rw-r--r-- | dev-python/pyacoustid/pyacoustid-1.3.0.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pyacoustid/pyacoustid-1.3.0.ebuild b/dev-python/pyacoustid/pyacoustid-1.3.0.ebuild new file mode 100644 index 000000000000..168c291cc74a --- /dev/null +++ b/dev-python/pyacoustid/pyacoustid-1.3.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +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 +} |