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 449E915800D for ; Sun, 9 Jul 2023 15:43:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 533D4E095E; Sun, 9 Jul 2023 15:43:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 3E972E095E for ; Sun, 9 Jul 2023 15:43:32 +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 73957340ED7 for ; Sun, 9 Jul 2023 15:43:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 93A0AAC4 for ; Sun, 9 Jul 2023 15:43:29 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1688916186.72cfeb5d7d566a5263038bb3494ef7f95cd6c649.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/lyricwikia/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/lyricwikia/lyricwikia-0.1.11-r2.ebuild net-misc/lyricwikia/metadata.xml X-VCS-Directories: net-misc/lyricwikia/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 72cfeb5d7d566a5263038bb3494ef7f95cd6c649 X-VCS-Branch: master Date: Sun, 9 Jul 2023 15:43:29 +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: e2a3b138-67f7-4ac6-b6da-23389c4e3c9c X-Archives-Hash: 6133e477b727f1c51824ec9dafb85706 commit: 72cfeb5d7d566a5263038bb3494ef7f95cd6c649 Author: Andrew Ammerlaan gentoo org> AuthorDate: Sun Jul 9 15:23:00 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sun Jul 9 15:23:06 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72cfeb5d net-misc/lyricwikia: update EAPI 7 -> 8, pep517, py3.12 Closes: https://bugs.gentoo.org/910008 Signed-off-by: Andrew Ammerlaan gentoo.org> net-misc/lyricwikia/lyricwikia-0.1.11-r2.ebuild | 48 +++++++++++++++++++++++++ net-misc/lyricwikia/metadata.xml | 3 ++ 2 files changed, 51 insertions(+) diff --git a/net-misc/lyricwikia/lyricwikia-0.1.11-r2.ebuild b/net-misc/lyricwikia/lyricwikia-0.1.11-r2.ebuild new file mode 100644 index 000000000000..e5c93282a1f9 --- /dev/null +++ b/net-misc/lyricwikia/lyricwikia-0.1.11-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Python API to get song lyrics from LyricWikia" +HOMEPAGE="https://github.com/enricobacis/lyricwikia" +SRC_URI="https://github.com/enricobacis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="test? ( dev-python/responses[${PYTHON_USEDEP}] )" + +RDEPEND=" + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" + +PATCHES="${FILESDIR}/${P}-skip-online-test.patch" + +distutils_enable_tests pytest + +python_prepare_all() { + # do not depend on deprecated dep + sed -i -e '/pytest-runner/d' setup.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + # rename the executable to avoid file conflict with net-im/lyrics-in-terminal + find "${D}" -name 'lyrics' -execdir mv {} lyricwikia \; || die +} + +pkg_postinst() { + elog "Note that access to LyricWikia through this API (and products that use this API) should comply to the LyricWikia terms of use" + elog "" + elog "LyricWikia is now offline, this package is provided solely for the purpose of satisfying media-video/vidify's dependencies" +} diff --git a/net-misc/lyricwikia/metadata.xml b/net-misc/lyricwikia/metadata.xml index 270110553011..264f58e3938d 100644 --- a/net-misc/lyricwikia/metadata.xml +++ b/net-misc/lyricwikia/metadata.xml @@ -7,4 +7,7 @@ Andrew Ammerlaan + + enricobacis/lyricwikia +