From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EB942158089 for ; Wed, 13 Sep 2023 02:42:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C9E12BC014; Wed, 13 Sep 2023 02:42:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0D73B2BC014 for ; Wed, 13 Sep 2023 02:42:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CA17F335CCD for ; Wed, 13 Sep 2023 02:42:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 46E021189 for ; Wed, 13 Sep 2023 02:42:26 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1694572326.c6f65982792bf30e419e3a2749212589855ca42b.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyacoustid/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyacoustid/Manifest dev-python/pyacoustid/pyacoustid-1.3.0.ebuild X-VCS-Directories: dev-python/pyacoustid/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c6f65982792bf30e419e3a2749212589855ca42b X-VCS-Branch: master Date: Wed, 13 Sep 2023 02:42:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f2f569e5-9a92-499c-bcf5-155eb5c3db7f X-Archives-Hash: 6cd6af5d4a8a78c3bb97327340b40430 commit: c6f65982792bf30e419e3a2749212589855ca42b Author: Michał Górny gentoo org> AuthorDate: Wed Sep 13 02:32:06 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Sep 13 02:32:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6f65982 dev-python/pyacoustid: Bump to 1.3.0 Signed-off-by: Michał Górny gentoo.org> dev-python/pyacoustid/Manifest | 1 + dev-python/pyacoustid/pyacoustid-1.3.0.ebuild | 51 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-python/pyacoustid/Manifest b/dev-python/pyacoustid/Manifest index 0be135d373c9..0d4fc802c0c2 100644 --- a/dev-python/pyacoustid/Manifest +++ b/dev-python/pyacoustid/Manifest @@ -1,2 +1,3 @@ DIST pyacoustid-1.2.2.tar.gz 15869 BLAKE2B 01f327dd640819dd799f48b32e859fe39dccda3fd62714bf324c8219cf7053b36f1399793523634e9d4f3c6405bed5050abb34bdf53c72ff0ee22708fb57225a SHA512 5bcb3f017c3013eb8fc9e335540a1f5e6a52fc2fefa53d5ef246ba16e4ff615dd1d1cf08b5c80b1a38b149e0fa7dc0b15e4890dcc3f5478ef874b4ec22cf0813 +DIST pyacoustid-1.3.0.tar.gz 17369 BLAKE2B 93f949943d792b4c1f4b2b99ae37821c1ffa5c7a2bbeda7aed276e6ad4f9ad35e5fc4c6e590667bee552710eec483cf2a16f58a7f34a1f02c94b4cb84ec45cf4 SHA512 3b38e580b2deda30df683fe749b338929be0ca23fb3ff462a5df9b98f140db4bde682d74254e7f3a157e394e824ecb6929171392b5e6c9bd92ca05fb6f71ed0a DIST pyacoustid-test.mp3 4507187 BLAKE2B 54494d9f23481f9d1ee77b136ac3e1790e9fb78c782159ad1793dbebf18f694e13f6413a8259bae84c789f73ea8241e590dbd7e30ccb7377b2afa946335da19b SHA512 faa582640e759322d4bd58d85f4aa7d3ef88fd90aa3c67c1390ba6d4c3213278c11fb60c8d6c87a25e82dffcc54986caa4f0e463acfbcd90993166577e5226d8 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 +}