1 |
commit: 69323bfb4c2e76b2aabb818387b0000f82684cce |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 27 08:44:20 2023 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 27 08:56:12 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69323bfb |
7 |
|
8 |
dev-python/python-mpv: add 1.0.2 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-mpv/Manifest | 1 + |
13 |
dev-python/python-mpv/python-mpv-1.0.2.ebuild | 37 +++++++++++++++++++++++++++ |
14 |
2 files changed, 38 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-mpv/Manifest b/dev-python/python-mpv/Manifest |
17 |
index 3fb93cebd68d..014a0708ee5c 100644 |
18 |
--- a/dev-python/python-mpv/Manifest |
19 |
+++ b/dev-python/python-mpv/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST python-mpv-1.0.1.tar.gz 210008 BLAKE2B 3ba95ac4d3219615c80ea475c1f6dc3acd608a8ded919eea55efac8bb44a8946c959a2b39473e6c9e80fa1a4e52f525d6ef9871e3eb4b2664aeb1460208bc677 SHA512 16a6e93b63f30e535c1e3bd77702d7c703dd9c0a6a689f09e689663cac04e587bdc2135612062d791ffb38c709bc289d0297ebf9f1ddaf9b1771f25eae225f1b |
22 |
+DIST python-mpv-1.0.2.gh.tar.gz 210975 BLAKE2B 1a364761405e430ed91f597e15aae7f6c221980c2ed9ce0152109486d1fb79ebb7b6257c79bfef34d72468bcf335e8e514324bdd10982096a64f8949b4bca261 SHA512 62a1c682de8d0308a80b66d6f435fba8563abc84b16670c3ef55cc3d9295fd3ead7c68d99e64c06734c5be9017549a53bd760ca201146427abcfbf7aca610b7a |
23 |
|
24 |
diff --git a/dev-python/python-mpv/python-mpv-1.0.2.ebuild b/dev-python/python-mpv/python-mpv-1.0.2.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..194d0f3edd53 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/python-mpv/python-mpv-1.0.2.ebuild |
29 |
@@ -0,0 +1,37 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{9..11} ) |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+inherit distutils-r1 virtualx |
38 |
+ |
39 |
+DESCRIPTION="Python interface to the mpv media player" |
40 |
+HOMEPAGE="https://github.com/jaseg/python-mpv" |
41 |
+SRC_URI="https://github.com/jaseg/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
42 |
+ |
43 |
+LICENSE="AGPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ media-video/mpv[libmpv] |
49 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
50 |
+" |
51 |
+ |
52 |
+BDEPEND="test? ( dev-python/xvfbwrapper[${PYTHON_USEDEP}] )" |
53 |
+ |
54 |
+distutils_enable_tests pytest |
55 |
+ |
56 |
+python_test() { |
57 |
+ # https://github.com/jaseg/python-mpv/issues/209 |
58 |
+ EPYTEST_DESELECT=( |
59 |
+ tests/test_mpv.py::TestLifecycle::test_wait_for_property_negative |
60 |
+ tests/test_mpv.py::TestLifecycle::test_wait_for_property_positive |
61 |
+ tests/test_mpv.py::TestLifecycle::test_wait_for_property_shutdown |
62 |
+ tests/test_mpv.py::TestLifecycle::test_wait_for_prooperty_event_overflow |
63 |
+ tests/test_mpv.py::TestLifecycle::test_event_callback |
64 |
+ ) |
65 |
+ virtx epytest |
66 |
+} |