From e9505ab755d38bc1faa052626c18604e93712cb4 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 5 Feb 2024 22:48:26 +0000 Subject: Adding metadata --- .../ffmpeg-python-0.2.0_p20220711-r1.ebuild | 52 ++++++++++++++++++++ .../ffmpeg-python-0.2.0_p20220711.ebuild | 56 ---------------------- .../files/ffmpeg-python-0.2.0-collections.patch | 14 ++++++ 3 files changed, 66 insertions(+), 56 deletions(-) create mode 100644 dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711-r1.ebuild delete mode 100644 dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711.ebuild create mode 100644 dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-collections.patch (limited to 'dev-python/ffmpeg-python') diff --git a/dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711-r1.ebuild b/dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711-r1.ebuild new file mode 100644 index 000000000000..994e5f0bc4cc --- /dev/null +++ b/dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +[[ "${PV}" == *_p20220711 ]] && COMMIT=df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8,9,10,11,12} ) + +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/${COMMIT}.tar.gz + -> ${P}.gh.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + + KEYWORDS="amd64 ~x86" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +RDEPEND=" + dev-python/numpy[${PYTHON_USEDEP}] + media-video/ffmpeg +" +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-0.2.0-no-future-795.patch" + "${FILESDIR}/${PN}-0.2.0-collections.patch" +) + +EPYTEST_DESELECT=( + ffmpeg/tests/test_ffmpeg.py::test__probe + ffmpeg/tests/test_ffmpeg.py::test_pipe +) + +distutils_enable_tests pytest +distutils_enable_sphinx doc/src diff --git a/dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711.ebuild b/dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711.ebuild deleted file mode 100644 index 1dce710f89a6..000000000000 --- a/dev-python/ffmpeg-python/ffmpeg-python-0.2.0_p20220711.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -[[ "${PV}" == *_p20220711 ]] && COMMIT=df129c7ba30aaa9ffffb81a48f53aa7253b0b4e6 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) - -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/${COMMIT}.tar.gz - -> ${P}.gh.tar.gz" - S="${WORKDIR}/${PN}-${COMMIT}" - - KEYWORDS="amd64 ~x86" -fi - -LICENSE="Apache-2.0" -SLOT="0" - -RDEPEND=" - dev-python/numpy[${PYTHON_USEDEP}] - media-video/ffmpeg -" -BDEPEND=" - test? ( - dev-python/pytest-mock[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}/${PN}-0.2.0-no-future-795.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 diff --git a/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-collections.patch b/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-collections.patch new file mode 100644 index 000000000000..fe905e9670b7 --- /dev/null +++ b/dev-python/ffmpeg-python/files/ffmpeg-python-0.2.0-collections.patch @@ -0,0 +1,14 @@ +--- a/ffmpeg/_utils.py ++++ b/ffmpeg/_utils.py +@@ -3,6 +3,11 @@ from builtins import str + import hashlib + import sys + ++try: ++ from collections.abc import Iterable ++except ImportError: ++ from collections import Iterable ++ + + def with_metaclass(meta, *bases): + class metaclass(meta): -- cgit v1.3.1