diff options
author | Louis Sautier <sbraz@gentoo.org> | 2019-04-04 17:53:06 +0200 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2019-04-04 17:55:18 +0200 |
commit | c84e8439be0e1e4bd6a46b13966185791c8e44b9 (patch) | |
tree | 2da57ad516dd9ff04178538b5b5175f9f78b65b9 /dev-python/pymediainfo/pymediainfo-4.0.ebuild | |
parent | sys-apps/systemd: bump to 242_rc3 (diff) | |
download | gentoo-c84e8439be0e1e4bd6a46b13966185791c8e44b9.tar.gz gentoo-c84e8439be0e1e4bd6a46b13966185791c8e44b9.tar.bz2 gentoo-c84e8439be0e1e4bd6a46b13966185791c8e44b9.zip |
dev-python/pymediainfo: bump to 4.0
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/pymediainfo/pymediainfo-4.0.ebuild')
-rw-r--r-- | dev-python/pymediainfo/pymediainfo-4.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/pymediainfo/pymediainfo-4.0.ebuild b/dev-python/pymediainfo/pymediainfo-4.0.ebuild new file mode 100644 index 000000000000..6ea542796361 --- /dev/null +++ b/dev-python/pymediainfo/pymediainfo-4.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6,7}} ) +PYTHON_REQ_USE="xml(+)" + +inherit distutils-r1 + +DESCRIPTION="A wrapper around the mediainfo library" +HOMEPAGE="https://github.com/sbraz/pymediainfo" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + media-libs/libmediainfo +" +BDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/setuptools_scm[${PYTHON_USEDEP}] + doc? ( + dev-python/alabaster[${PYTHON_USEDEP}] + dev-python/sphinx[${PYTHON_USEDEP}] + ) + test? ( + ${RDEPEND} + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +python_compile_all() { + if use doc; then + sphinx-build docs docs/_build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + # Skip a test which requires network access + pytest -vv tests/test_pymediainfo.py -k "not MediaInfoURLTest" \ + || die "tests failed with ${EPYTHON}" +} |