1 |
commit: 512a51a16ae6623d33c2e1cbfbf0cfd3611feec4 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 30 12:10:23 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 30 12:21:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=512a51a1 |
7 |
|
8 |
dev-python/python-mpd: fix DEPEND (testing) |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
dev-python/python-mpd/python-mpd-1.1.0-r1.ebuild | 48 ++++++++++++++++++++++++ |
14 |
1 file changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-mpd/python-mpd-1.1.0-r1.ebuild b/dev-python/python-mpd/python-mpd-1.1.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..fd322f9116e |
19 |
--- /dev/null |
20 |
+++ b/dev-python/python-mpd/python-mpd-1.1.0-r1.ebuild |
21 |
@@ -0,0 +1,48 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+DISTUTILS_USE_SETUPTOOLS="bdepend" |
28 |
+PYTHON_COMPAT=( python3_{6..9} ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Python MPD client library" |
33 |
+HOMEPAGE="https://github.com/Mic92/python-mpd2" |
34 |
+SRC_URI="https://github.com/Mic92/${PN}2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="LGPL-3+" |
37 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
38 |
+SLOT="0" |
39 |
+IUSE="examples +twisted" |
40 |
+ |
41 |
+REQUIRED_USE="test? ( twisted )" |
42 |
+ |
43 |
+RDEPEND="twisted? ( dev-python/twisted[${PYTHON_USEDEP}] )" |
44 |
+ |
45 |
+DEPEND="${RDEPEND}" |
46 |
+ |
47 |
+BDEPEND=" |
48 |
+ test? ( |
49 |
+ dev-python/mock[${PYTHON_USEDEP}] |
50 |
+ dev-python/toml[${PYTHON_USEDEP}] |
51 |
+ ) |
52 |
+" |
53 |
+ |
54 |
+DOCS=( README.rst doc/{changes.rst,commands_header.txt} doc/topics/. ) |
55 |
+ |
56 |
+S="${WORKDIR}/${PN}2-${PV}" |
57 |
+ |
58 |
+distutils_enable_sphinx doc --no-autodoc |
59 |
+distutils_enable_tests pytest |
60 |
+ |
61 |
+python_test() { |
62 |
+ pytest mpd/tests.py -vv || die "Tests fail with ${EPYTHON}" |
63 |
+} |
64 |
+ |
65 |
+python_install_all() { |
66 |
+ distutils-r1_python_install_all |
67 |
+ |
68 |
+ use examples && dodoc -r examples/. |
69 |
+} |