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