summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/subliminal/subliminal-2.0.5.ebuild')
-rw-r--r--media-video/subliminal/subliminal-2.0.5.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/media-video/subliminal/subliminal-2.0.5.ebuild b/media-video/subliminal/subliminal-2.0.5.ebuild
index cef97edfd13..720d02b7498 100644
--- a/media-video/subliminal/subliminal-2.0.5.ebuild
+++ b/media-video/subliminal/subliminal-2.0.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -11,7 +11,9 @@ inherit distutils-r1
DESCRIPTION="Python library to search and download subtitles"
HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.python.org/pypi/subliminal"
-SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="
+ https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://dev.gentoo.org/~soap/distfiles/${P}-fix-tests.patch"
LICENSE="MIT"
SLOT="0"
@@ -50,6 +52,8 @@ DEPEND="${RDEPEND}
# Tests require network.
RESTRICT=test
+PATCHES=( "${DISTDIR}/${P}-fix-tests.patch" )
+
python_prepare_all() {
# Disable code checkers as they require unavailable dependencies.
sed -i -e 's/--\(pep8\|flakes\)//g' pytest.ini || die