diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-05-31 20:59:14 +0100 |
commit | e748ba9741f6540f4675c23e3e37b73e822c13a4 (patch) | |
tree | 23dece8beabb3a3d7c6c0273b0eb40b21c62a889 /net-misc/lyricwikia | |
parent | 908778078736bd36f7a60a2d576d415cb8e000fa (diff) |
gentoo resync : 31.05.2021
Diffstat (limited to 'net-misc/lyricwikia')
-rw-r--r-- | net-misc/lyricwikia/Manifest | 4 | ||||
-rw-r--r-- | net-misc/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch | 14 | ||||
-rw-r--r-- | net-misc/lyricwikia/lyricwikia-0.1.11-r1.ebuild | 48 | ||||
-rw-r--r-- | net-misc/lyricwikia/metadata.xml | 10 |
4 files changed, 76 insertions, 0 deletions
diff --git a/net-misc/lyricwikia/Manifest b/net-misc/lyricwikia/Manifest new file mode 100644 index 000000000000..5afd9a52bba6 --- /dev/null +++ b/net-misc/lyricwikia/Manifest @@ -0,0 +1,4 @@ +AUX lyricwikia-0.1.11-skip-online-test.patch 506 BLAKE2B 92bf9826dd35d483fdabae057884e36847e2be273e668adae281962ec26ec05338b5fe53debb01655136af6a1325a20d043f023e756ee674c876c40d08095915 SHA512 6bb6d2960c39bee05e1d5b3a01656d78bce4fe07038758029274cf7e4d8495a29ffd2b79a7f3e02902a5e73fce03b505d1fed48a75e3681ab004a95cd6466416 +DIST lyricwikia-0.1.11.tar.gz 5571 BLAKE2B 1e2fb5400b4c0ed07d419e577e3c12c6b8eca749ce1a5b7dea51d6d055979722b82d003eac20402da873d3011d1b444c0783935adbc01ec99dd6079b234e6bc7 SHA512 53ff9a2837ccc10be62c2a92240e9849a9c88b7979f8058deff87ce6eda6e98e39fb86c78052de9a885db679cd87a6c5749af2f9502d3316fbbf2c0796718805 +EBUILD lyricwikia-0.1.11-r1.ebuild 1318 BLAKE2B 95c706a85be8d56a02f1a20681d5ef0cacd5475c1f3ac04021c3c97f477b29616b8d11b7103b56a8c6f24bd947ae3308689087d49f3f68394abbf96b88f0ef73 SHA512 b5a1bca6ff1f0fee0a321a2dd6bc445cf3f1e8517ef5e1a28210a6762eb9fb025fe057475d323c87b12659e3c2ccd5486e3ab09580b1e9356ca6235c56938ccb +MISC metadata.xml 283 BLAKE2B ef3dfe1a27e46c933f7ae0bbdece78cab262e4c6a5713caceabd3cc11e5150ff4ad87da258f9a9aee61eb0b4f84dd8aa4b5537bdee54c0eee3d219666c436a46 SHA512 1401089263deca8f8539e7242fd5a68f32c51f8eeb44c05639cc5bee57781948443fd8fe3912c77dc7bbd61181c0b1d7ded90c7c7c3ae161d681d050ec990bda diff --git a/net-misc/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch b/net-misc/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch new file mode 100644 index 000000000000..5ca24dd4d4bc --- /dev/null +++ b/net-misc/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch @@ -0,0 +1,14 @@ +diff --git a/tests/test_get_lyrics.py b/tests/test_get_lyrics.py +index 5b1bb74..634ca55 100644 +--- a/tests/test_get_lyrics.py ++++ b/tests/test_get_lyrics.py +@@ -26,6 +26,6 @@ def test_returnLyricsNotFound(): + assert len(responses.calls) == 1 + + +-def test_integration(): +- lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven') +- assert 'lady' in lyrics.lower() ++# def test_integration(): ++# lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven') ++# assert 'lady' in lyrics.lower() diff --git a/net-misc/lyricwikia/lyricwikia-0.1.11-r1.ebuild b/net-misc/lyricwikia/lyricwikia-0.1.11-r1.ebuild new file mode 100644 index 000000000000..feabf0bad1a1 --- /dev/null +++ b/net-misc/lyricwikia/lyricwikia-0.1.11-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +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/beautifulsoup:4[${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 new file mode 100644 index 000000000000..213b9d4ff05b --- /dev/null +++ b/net-misc/lyricwikia/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>andrewammerlaan@gentoo.org</email> + <name>Andrew Ammerlaan</name> + </maintainer> + <stabilize-allarches/> +</pkgmetadata> |