summaryrefslogtreecommitdiff
path: root/dev-python/ffmpeg-python/ffmpeg-python-0.2.0.ebuild
blob: fd18cd92f295513b78a49cfaccecd3f38923659a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )

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
)

EPYTEST_DESELECT=(
	ffmpeg/tests/test_ffmpeg.py::test__get_filter_complex_input
	ffmpeg/tests/test_ffmpeg.py::test__input__start_time
	ffmpeg/tests/test_ffmpeg.py::test__multi_output_edge_label_order
	ffmpeg/tests/test_ffmpeg.py::test__probe
	ffmpeg/tests/test_ffmpeg.py::test__probe__extra_args
	ffmpeg/tests/test_ffmpeg.py::test_fluent_complex_filter
	ffmpeg/tests/test_ffmpeg.py::test_pipe
	ffmpeg/tests/test_ffmpeg.py::test_repeated_args
)

distutils_enable_tests pytest
distutils_enable_sphinx doc/src