aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-04-21 18:55:42 +0200
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2020-04-21 18:55:42 +0200
commitfe5732e35fc23a27d3d0f4d736cb93a122bf44d5 (patch)
tree57546dc3355d3451bc3fce53ef425fd13fdaa609 /net-misc/lyricwikia/lyricwikia-0.1.11.ebuild
parentgames-util/NotEnoughProduction: new package (diff)
downloadguru-fe5732e35fc23a27d3d0f4d736cb93a122bf44d5.tar.gz
guru-fe5732e35fc23a27d3d0f4d736cb93a122bf44d5.tar.bz2
guru-fe5732e35fc23a27d3d0f4d736cb93a122bf44d5.zip
dev-python/lyricwikia: move to net-misc catagory
it is more appropriate since it is not realy a library, and youtube-dl is in this catagory as well Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'net-misc/lyricwikia/lyricwikia-0.1.11.ebuild')
-rw-r--r--net-misc/lyricwikia/lyricwikia-0.1.11.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/net-misc/lyricwikia/lyricwikia-0.1.11.ebuild b/net-misc/lyricwikia/lyricwikia-0.1.11.ebuild
new file mode 100644
index 00000000..ce02490c
--- /dev/null
+++ b/net-misc/lyricwikia/lyricwikia-0.1.11.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+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 ~x86"
+
+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
+}
+
+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"
+}