diff options
author | Louis Sautier <sbraz@gentoo.org> | 2018-11-08 12:03:47 +0100 |
---|---|---|
committer | Louis Sautier <sbraz@gentoo.org> | 2018-11-08 12:05:07 +0100 |
commit | b94f5a880b9a0f649cfca5527565aa0de9dcf1aa (patch) | |
tree | 878353cb3a3cf3380f963c873f456de504c32430 /dev-python/pymediainfo/pymediainfo-3.0.ebuild | |
parent | sci-chemistry/pymol: Version bump (diff) | |
download | gentoo-b94f5a880b9a0f649cfca5527565aa0de9dcf1aa.tar.gz gentoo-b94f5a880b9a0f649cfca5527565aa0de9dcf1aa.tar.bz2 gentoo-b94f5a880b9a0f649cfca5527565aa0de9dcf1aa.zip |
dev-python/pymediainfo: bump to 3.0, make pytest verbose
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'dev-python/pymediainfo/pymediainfo-3.0.ebuild')
-rw-r--r-- | dev-python/pymediainfo/pymediainfo-3.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/pymediainfo/pymediainfo-3.0.ebuild b/dev-python/pymediainfo/pymediainfo-3.0.ebuild new file mode 100644 index 000000000000..ea072cab56c1 --- /dev/null +++ b/dev-python/pymediainfo/pymediainfo-3.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 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}" +} |