commit:     398f5094e228393710bf066dd397ea09faa1b113
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue Jan 21 14:28:55 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Jan 21 14:28:55 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=398f5094

dev-python/lyricwikia: Python API to get song lyrics from LyricWikia

Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-python/lyricwikia/Manifest                     |  1 +
 .../files/lyricwikia-0.1.11-skip-online-test.patch | 14 +++++++++++
 dev-python/lyricwikia/lyricwikia-0.1.11.ebuild     | 28 ++++++++++++++++++++++
 dev-python/lyricwikia/metadata.xml                 | 13 ++++++++++
 4 files changed, 56 insertions(+)

diff --git a/dev-python/lyricwikia/Manifest b/dev-python/lyricwikia/Manifest
new file mode 100644
index 0000000..b152649
--- /dev/null
+++ b/dev-python/lyricwikia/Manifest
@@ -0,0 +1 @@
+DIST lyricwikia-0.1.11.tar.gz 5571 BLAKE2B 
1e2fb5400b4c0ed07d419e577e3c12c6b8eca749ce1a5b7dea51d6d055979722b82d003eac20402da873d3011d1b444c0783935adbc01ec99dd6079b234e6bc7
 SHA512 
53ff9a2837ccc10be62c2a92240e9849a9c88b7979f8058deff87ce6eda6e98e39fb86c78052de9a885db679cd87a6c5749af2f9502d3316fbbf2c0796718805

diff --git 
a/dev-python/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch 
b/dev-python/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch
new file mode 100644
index 0000000..5ca24dd
--- /dev/null
+++ b/dev-python/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/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild 
b/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild
new file mode 100644
index 0000000..812fd1c
--- /dev/null
+++ b/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild
@@ -0,0 +1,28 @@
+# 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="dev-python/pytest-runner[${PYTHON_USEDEP}]
+               test? ( dev-python/responses[${PYTHON_USEDEP}] )"
+
+RDEPEND="
+       dev-python/beautifulsoup[${PYTHON_USEDEP}]
+       dev-python/six[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]"
+
+PATCHES="${FILESDIR}/${P}-skip-online-test.patch"
+
+distutils_enable_tests pytest

diff --git a/dev-python/lyricwikia/metadata.xml 
b/dev-python/lyricwikia/metadata.xml
new file mode 100644
index 0000000..dd0bd9c
--- /dev/null
+++ b/dev-python/lyricwikia/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+
+<pkgmetadata>
+    <maintainer type="person">
+        <email>andrewammerl...@riseup.net</email>
+        <name>Andrew Ammerlaan</name>
+    </maintainer>
+    <maintainer type="project">
+        <email>proxy-ma...@gentoo.org</email>
+        <name>Proxy Maintainers</name>
+    </maintainer>
+</pkgmetadata>

Reply via email to