1 |
commit: 398f5094e228393710bf066dd397ea09faa1b113 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Tue Jan 21 14:28:55 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Tue Jan 21 14:28:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=398f5094 |
7 |
|
8 |
dev-python/lyricwikia: Python API to get song lyrics from LyricWikia |
9 |
|
10 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/lyricwikia/Manifest | 1 + |
14 |
.../files/lyricwikia-0.1.11-skip-online-test.patch | 14 +++++++++++ |
15 |
dev-python/lyricwikia/lyricwikia-0.1.11.ebuild | 28 ++++++++++++++++++++++ |
16 |
dev-python/lyricwikia/metadata.xml | 13 ++++++++++ |
17 |
4 files changed, 56 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/lyricwikia/Manifest b/dev-python/lyricwikia/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..b152649 |
22 |
--- /dev/null |
23 |
+++ b/dev-python/lyricwikia/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST lyricwikia-0.1.11.tar.gz 5571 BLAKE2B 1e2fb5400b4c0ed07d419e577e3c12c6b8eca749ce1a5b7dea51d6d055979722b82d003eac20402da873d3011d1b444c0783935adbc01ec99dd6079b234e6bc7 SHA512 53ff9a2837ccc10be62c2a92240e9849a9c88b7979f8058deff87ce6eda6e98e39fb86c78052de9a885db679cd87a6c5749af2f9502d3316fbbf2c0796718805 |
26 |
|
27 |
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 |
28 |
new file mode 100644 |
29 |
index 0000000..5ca24dd |
30 |
--- /dev/null |
31 |
+++ b/dev-python/lyricwikia/files/lyricwikia-0.1.11-skip-online-test.patch |
32 |
@@ -0,0 +1,14 @@ |
33 |
+diff --git a/tests/test_get_lyrics.py b/tests/test_get_lyrics.py |
34 |
+index 5b1bb74..634ca55 100644 |
35 |
+--- a/tests/test_get_lyrics.py |
36 |
++++ b/tests/test_get_lyrics.py |
37 |
+@@ -26,6 +26,6 @@ def test_returnLyricsNotFound(): |
38 |
+ assert len(responses.calls) == 1 |
39 |
+ |
40 |
+ |
41 |
+-def test_integration(): |
42 |
+- lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven') |
43 |
+- assert 'lady' in lyrics.lower() |
44 |
++# def test_integration(): |
45 |
++# lyrics = get_lyrics('Led Zeppelin', 'Stairway to Heaven') |
46 |
++# assert 'lady' in lyrics.lower() |
47 |
|
48 |
diff --git a/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild b/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild |
49 |
new file mode 100644 |
50 |
index 0000000..812fd1c |
51 |
--- /dev/null |
52 |
+++ b/dev-python/lyricwikia/lyricwikia-0.1.11.ebuild |
53 |
@@ -0,0 +1,28 @@ |
54 |
+# Copyright 1999-2020 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
60 |
+ |
61 |
+inherit distutils-r1 |
62 |
+ |
63 |
+DESCRIPTION="Python API to get song lyrics from LyricWikia" |
64 |
+HOMEPAGE="https://github.com/enricobacis/lyricwikia" |
65 |
+SRC_URI="https://github.com/enricobacis/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="MIT" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+ |
71 |
+DEPEND="dev-python/pytest-runner[${PYTHON_USEDEP}] |
72 |
+ test? ( dev-python/responses[${PYTHON_USEDEP}] )" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ dev-python/beautifulsoup[${PYTHON_USEDEP}] |
76 |
+ dev-python/six[${PYTHON_USEDEP}] |
77 |
+ dev-python/requests[${PYTHON_USEDEP}]" |
78 |
+ |
79 |
+PATCHES="${FILESDIR}/${P}-skip-online-test.patch" |
80 |
+ |
81 |
+distutils_enable_tests pytest |
82 |
|
83 |
diff --git a/dev-python/lyricwikia/metadata.xml b/dev-python/lyricwikia/metadata.xml |
84 |
new file mode 100644 |
85 |
index 0000000..dd0bd9c |
86 |
--- /dev/null |
87 |
+++ b/dev-python/lyricwikia/metadata.xml |
88 |
@@ -0,0 +1,13 @@ |
89 |
+<?xml version="1.0" encoding="UTF-8"?> |
90 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
91 |
+ |
92 |
+<pkgmetadata> |
93 |
+ <maintainer type="person"> |
94 |
+ <email>andrewammerlaan@××××××.net</email> |
95 |
+ <name>Andrew Ammerlaan</name> |
96 |
+ </maintainer> |
97 |
+ <maintainer type="project"> |
98 |
+ <email>proxy-maint@g.o</email> |
99 |
+ <name>Proxy Maintainers</name> |
100 |
+ </maintainer> |
101 |
+</pkgmetadata> |