diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2016-05-11 08:05:29 +0300 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-05-12 19:39:36 +0800 |
commit | 6b3aa8230f88ab75fbf816974326ac7a7a7b6ca3 (patch) | |
tree | 487a1662617a838efcd13a238868cd865c9154b4 /dev-python/guessit/guessit-9999.ebuild | |
parent | dev-python/guessit: remove old (diff) | |
download | gentoo-6b3aa8230f88ab75fbf816974326ac7a7a7b6ca3.tar.gz gentoo-6b3aa8230f88ab75fbf816974326ac7a7a7b6ca3.tar.bz2 gentoo-6b3aa8230f88ab75fbf816974326ac7a7a7b6ca3.zip |
dev-python/guessit: verbump to 2.0.5
It's a complete rewrite since 1.x thus drop untested implementations
from PYTHON_COMPAT.
Sync 9999 ebuild with 2.0.5.
Package-Manager: portage-2.2.28
Signed-off-by: Ian Delaney <idella4@gentoo.org>
Diffstat (limited to 'dev-python/guessit/guessit-9999.ebuild')
-rw-r--r-- | dev-python/guessit/guessit-9999.ebuild | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/dev-python/guessit/guessit-9999.ebuild b/dev-python/guessit/guessit-9999.ebuild index 83f23cb50d4e..0eed9f6cf8cc 100644 --- a/dev-python/guessit/guessit-9999.ebuild +++ b/dev-python/guessit/guessit-9999.ebuild @@ -2,42 +2,52 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI="5" -PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +EAPI=6 -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/wackou/guessit.git" - inherit git-r3 -else - SRC_URI="https://github.com/wackou/guessit/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi +PYTHON_COMPAT=( python{2_7,3_4} ) -inherit distutils-r1 +inherit distutils-r1 git-r3 -DESCRIPTION="library for guessing information from video files" -HOMEPAGE="http://guessit.readthedocs.org https://github.com/wackou/guessit https://pypi.python.org/pypi/guessit" +DESCRIPTION="Python library for guessing information from video filenames" +HOMEPAGE="https://github.com/guessit-io/guessit https://pypi.python.org/pypi/guessit" +EGIT_REPO_URI="git://github.com/${PN}-io/${PN}.git" LICENSE="LGPL-3" SLOT="0" +KEYWORDS="" IUSE="test" RDEPEND=" + >=dev-python/rebulk-0.7.1[${PYTHON_USEDEP}] >=dev-python/babelfish-0.5.5[${PYTHON_USEDEP}] - >=dev-python/stevedore-0.14[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}] + <dev-python/python-dateutil-2.5.2[${PYTHON_USEDEP}] + dev-python/stevedore[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] " DEPEND="${RDEPEND} test? ( >=dev-python/pytest-2.7.3[${PYTHON_USEDEP}] dev-python/pytest-capturelog[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] ) - dev-python/pytest-runner[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] " +PATCHES=( "${FILESDIR}/${PN}-2.0.5-support-noninteractive-shells.patch" ) + +python_prepare_all() { + # Disable benchmarks as they require unavailable pytest-benchmark. + rm guessit/test/test_benchmark.py || die + sed -i -e "s|'pytest-benchmark',||g" setup.py || die + + # Disable unconditional dependency on dev-python/pytest-runner. + sed -i -e "s|'pytest-runner'||g" setup.py || die + + distutils-r1_python_prepare_all +} + python_test() { esetup.py test } |