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