mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/ffmpeg-python: new package; add version 0.2.0
Bug: https://github.com/deepjyoti30/ytmdl/issues/222 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
1
dev-python/ffmpeg-python/Manifest
Normal file
1
dev-python/ffmpeg-python/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST ffmpeg-python-0.2.0.tar.gz 3267771 BLAKE2B 8bca4a24434b6c7a542e3c178cb7bf1e5650f9763636d5378f9652cdd07ef19b0e96007d6bb71fdf1664efb6e33d597844c7d6a44dc8dcb1c083e21f53649469 SHA512 933ed958d61536bbbc0e0b08e19521c4b1f7df1cfe97de0b3d149a2748c5bd74915a3134861e8ecb1f92d5860315228b76aefcd087fcf07e188a56c651f5e301
|
||||
38
dev-python/ffmpeg-python/ffmpeg-python-0.2.0.ebuild
Normal file
38
dev-python/ffmpeg-python/ffmpeg-python-0.2.0.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python bindings for FFmpeg with complex filtering support"
|
||||
HOMEPAGE="https://github.com/kkroening/ffmpeg-python"
|
||||
|
||||
if [[ "${PV}" == *9999* ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/kkroening/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/kkroening/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/future[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
media-video/ffmpeg
|
||||
"
|
||||
BDEPEND="test? ( dev-python/pytest-mock[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-_run.py-collections.patch
|
||||
"${FILESDIR}"/${P}-setup.py-pytest-runner.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx doc/src
|
||||
@@ -0,0 +1,12 @@
|
||||
index afc504d..bf43c06 100644
|
||||
--- a/ffmpeg/_run.py
|
||||
+++ b/ffmpeg/_run.py
|
||||
@@ -137,7 +137,7 @@ def _get_output_args(node, stream_name_map):
|
||||
if 'video_size' in kwargs:
|
||||
video_size = kwargs.pop('video_size')
|
||||
if not isinstance(video_size, basestring) and isinstance(
|
||||
- video_size, collections.Iterable
|
||||
+ video_size, collections.abc.Iterable
|
||||
):
|
||||
video_size = '{}x{}'.format(video_size[0], video_size[1])
|
||||
args += ['-video_size', video_size]
|
||||
@@ -0,0 +1,11 @@
|
||||
index 0282c67..2011d2c 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -60,7 +60,6 @@ keywords = misc_keywords + file_formats
|
||||
setup(
|
||||
name='ffmpeg-python',
|
||||
packages=['ffmpeg'],
|
||||
- setup_requires=['pytest-runner'],
|
||||
tests_require=['pytest', 'pytest-mock'],
|
||||
version=version,
|
||||
description='Python bindings for FFmpeg - with complex filtering support',
|
||||
13
dev-python/ffmpeg-python/metadata.xml
Normal file
13
dev-python/ffmpeg-python/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>xgqt@gentoo.org</email>
|
||||
<name>Maciej Barć</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/kkroening/ffmpeg-python/issues/</bugs-to>
|
||||
<remote-id type="github">kkroening/ffmpeg-python</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user