From: Louis Sautier Date: Wed, 18 Sep 2019 13:13:54 +0000 (+0200) Subject: dev-python/pymediainfo: bump to 4.1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28584ea0765ef9f2fcb59beaea768405c8cf11ae;p=gentoo.git dev-python/pymediainfo: bump to 4.1 Package-Manager: Portage-2.3.73, Repoman-2.3.17 Signed-off-by: Louis Sautier --- diff --git a/dev-python/pymediainfo/Manifest b/dev-python/pymediainfo/Manifest index 2d0e0d32e573..5337b36b008b 100644 --- a/dev-python/pymediainfo/Manifest +++ b/dev-python/pymediainfo/Manifest @@ -1,2 +1,3 @@ DIST pymediainfo-3.1.tar.gz 430689 BLAKE2B 2abb8197ab8890617cb0cebf15001fefc5837c886c110f66852be56db6a2df851ec13b7dc76db40723cc920bf44ca87286446f451dc5c51b8998ee332a23cad8 SHA512 a2fd04977236190c18e62da9ec0110d9de9f31acaae448b40ce56f66d925d9e0e0d2015f7824d359ebbd8ec749c0ff812ee4ef776333319827759c4c4fe708ab DIST pymediainfo-4.0.tar.gz 432284 BLAKE2B 1159f48f28f0a3473327830e56a27fcd14dc9d9dceeac6f90d52a048229d87e97d3b88ef865eefe454c8cebf55148981b2e88127e863682e00992d56c2906048 SHA512 988f0d8a212bc5893925bd96a5b41a1a2c8e9508c747e7aa1106f3a065ad5707a7ed9de71264d74ba6637a2b8efbdeeed3677d779167bb90f643d40f81c5a74e +DIST pymediainfo-4.1.tar.gz 432848 BLAKE2B e4bac2b43ee7c6ecb978bb08eb5c7070f458b7a00607c0a1d68a5e74d4f6393d7bb44d7e3471a4ab83bc45e19e4f3ab6b7779c28c16845c27a4895d76fa34d64 SHA512 08ffca0c3179aa6dff5b3007faaec1f1a2f372b2995824039021f41b2c772a2a13370c1dbd37d2408d023be497cff71dd6f46b09c8989f168976d75723cd7722 diff --git a/dev-python/pymediainfo/pymediainfo-4.1.ebuild b/dev-python/pymediainfo/pymediainfo-4.1.ebuild new file mode 100644 index 000000000000..0ab81a022927 --- /dev/null +++ b/dev-python/pymediainfo/pymediainfo-4.1.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_{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}" +}