src_prepare-overlay/dev-python/ffmpeg-python/ffmpeg-python-9999.ebuild
Maciej Barć b5d1f411ee
dev-python/ffmpeg-python: fix docs and tests
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2020-05-10 22:44:22 +02:00

47 lines
973 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7} )
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"
KEYWORDS=""
else
SRC_URI="https://github.com/kkroening/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
RESTRICT="
mirror
!test? ( test )
"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc test"
DEPEND="
>=dev-python/future-0.18.2[${PYTHON_USEDEP}]
>=dev-python/numpy-1.16.5[${PYTHON_USEDEP}]
dev-python/pytest-runner[${PYTHON_USEDEP}]
test? (
>=dev-python/pytest-4.6.9[${PYTHON_USEDEP}]
>=dev-python/pytest-mock-1.11.2[${PYTHON_USEDEP}]
)
"
RDEPEND="
${RDEPEND}
media-video/ffmpeg
"
distutils_enable_tests pytest
distutils_enable_sphinx doc/src