summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2019-04-04 17:53:06 +0200
committerLouis Sautier <sbraz@gentoo.org>2019-04-04 17:55:18 +0200
commitc84e8439be0e1e4bd6a46b13966185791c8e44b9 (patch)
tree2da57ad516dd9ff04178538b5b5175f9f78b65b9 /dev-python/pymediainfo/pymediainfo-4.0.ebuild
parentsys-apps/systemd: bump to 242_rc3 (diff)
downloadgentoo-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.ebuild48
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}"
+}