1 |
commit: acf0097a0a026d935f073f9dfe82f1a43a3dac3e |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 3 20:39:45 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 5 12:31:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acf0097a |
7 |
|
8 |
dev-python/ffmpeg-python: new package; add version 0.2.0 |
9 |
|
10 |
Bug: https://github.com/deepjyoti30/ytmdl/issues/222 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
dev-python/ffmpeg-python/Manifest | 1 + |
14 |
.../ffmpeg-python/ffmpeg-python-0.2.0.ebuild | 38 ++++++++++++++++++++++ |
15 |
.../ffmpeg-python-0.2.0-_run.py-collections.patch | 12 +++++++ |
16 |
...fmpeg-python-0.2.0-setup.py-pytest-runner.patch | 11 +++++++ |
17 |
dev-python/ffmpeg-python/metadata.xml | 13 ++++++++ |
18 |
5 files changed, 75 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/ffmpeg-python/Manifest b/dev-python/ffmpeg-python/Manifest |
21 |
new file mode 100644 |
22 |
index 000000000000..c1f30ed46ffd |
23 |
--- /dev/null |
24 |
+++ b/dev-python/ffmpeg-python/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST ffmpeg-python-0.2.0.tar.gz 3267771 BLAKE2B 8bca4a24434b6c7a542e3c178cb7bf1e5650f9763636d5378f9652cdd07ef19b0e96007d6bb71fdf1664efb6e33d597844c7d6a44dc8dcb1c083e21f53649469 SHA512 933ed958d61536bbbc0e0b08e19521c4b1f7df1cfe97de0b3d149a2748c5bd74915a3134861e8ecb1f92d5860315228b76aefcd087fcf07e188a56c651f5e301 |
27 |
|
28 |
diff --git a/dev-python/ffmpeg-python/ffmpeg-python-0.2.0.ebuild b/dev-python/ffmpeg-python/ffmpeg-python-0.2.0.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..4ee086b79602 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/ffmpeg-python/ffmpeg-python-0.2.0.ebuild |
33 |
@@ -0,0 +1,38 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+DISTUTILS_USE_PEP517=setuptools |
40 |
+PYTHON_COMPAT=( python3_{8..10} ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="Python bindings for FFmpeg with complex filtering support" |
45 |
+HOMEPAGE="https://github.com/kkroening/ffmpeg-python" |
46 |
+ |
47 |
+if [[ "${PV}" == *9999* ]] ; then |
48 |
+ inherit git-r3 |
49 |
+ EGIT_REPO_URI="https://github.com/kkroening/${PN}.git" |
50 |
+else |
51 |
+ SRC_URI="https://github.com/kkroening/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
52 |
+ KEYWORDS="~amd64 ~x86" |
53 |
+fi |
54 |
+ |
55 |
+LICENSE="Apache-2.0" |
56 |
+SLOT="0" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ dev-python/future[${PYTHON_USEDEP}] |
60 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
61 |
+ media-video/ffmpeg |
62 |
+" |
63 |
+BDEPEND="test? ( dev-python/pytest-mock[${PYTHON_USEDEP}] )" |
64 |
+ |
65 |
+PATCHES=( |
66 |
+ "${FILESDIR}"/${P}-_run.py-collections.patch |
67 |
+ "${FILESDIR}"/${P}-setup.py-pytest-runner.patch |
68 |
+) |
69 |
+ |
70 |
+distutils_enable_tests pytest |
71 |
+distutils_enable_sphinx doc/src |
72 |
|
73 |
diff --git a/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-_run.py-collections.patch b/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-_run.py-collections.patch |
74 |
new file mode 100644 |
75 |
index 000000000000..6231ba17b86e |
76 |
--- /dev/null |
77 |
+++ b/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-_run.py-collections.patch |
78 |
@@ -0,0 +1,12 @@ |
79 |
+index afc504d..bf43c06 100644 |
80 |
+--- a/ffmpeg/_run.py |
81 |
++++ b/ffmpeg/_run.py |
82 |
+@@ -137,7 +137,7 @@ def _get_output_args(node, stream_name_map): |
83 |
+ if 'video_size' in kwargs: |
84 |
+ video_size = kwargs.pop('video_size') |
85 |
+ if not isinstance(video_size, basestring) and isinstance( |
86 |
+- video_size, collections.Iterable |
87 |
++ video_size, collections.abc.Iterable |
88 |
+ ): |
89 |
+ video_size = '{}x{}'.format(video_size[0], video_size[1]) |
90 |
+ args += ['-video_size', video_size] |
91 |
|
92 |
diff --git a/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-setup.py-pytest-runner.patch b/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-setup.py-pytest-runner.patch |
93 |
new file mode 100644 |
94 |
index 000000000000..67fbb2308a37 |
95 |
--- /dev/null |
96 |
+++ b/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-setup.py-pytest-runner.patch |
97 |
@@ -0,0 +1,11 @@ |
98 |
+index 0282c67..2011d2c 100644 |
99 |
+--- a/setup.py |
100 |
++++ b/setup.py |
101 |
+@@ -60,7 +60,6 @@ keywords = misc_keywords + file_formats |
102 |
+ setup( |
103 |
+ name='ffmpeg-python', |
104 |
+ packages=['ffmpeg'], |
105 |
+- setup_requires=['pytest-runner'], |
106 |
+ tests_require=['pytest', 'pytest-mock'], |
107 |
+ version=version, |
108 |
+ description='Python bindings for FFmpeg - with complex filtering support', |
109 |
|
110 |
diff --git a/dev-python/ffmpeg-python/metadata.xml b/dev-python/ffmpeg-python/metadata.xml |
111 |
new file mode 100644 |
112 |
index 000000000000..b908e7d7cbe1 |
113 |
--- /dev/null |
114 |
+++ b/dev-python/ffmpeg-python/metadata.xml |
115 |
@@ -0,0 +1,13 @@ |
116 |
+<?xml version="1.0" encoding="UTF-8"?> |
117 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
118 |
+ |
119 |
+<pkgmetadata> |
120 |
+ <maintainer type="person"> |
121 |
+ <email>xgqt@g.o</email> |
122 |
+ <name>Maciej Barć</name> |
123 |
+ </maintainer> |
124 |
+ <upstream> |
125 |
+ <bugs-to>https://github.com/kkroening/ffmpeg-python/issues/</bugs-to> |
126 |
+ <remote-id type="github">kkroening/ffmpeg-python</remote-id> |
127 |
+ </upstream> |
128 |
+</pkgmetadata> |