summaryrefslogtreecommitdiff
path: root/dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-27 21:48:41 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-27 21:48:41 +0200
commit9ca86cb31b2ddf3740a4e9ee11437f5f09a49ce8 (patch)
treef24b5341333aaf64ce27f0629444a9cc564ed58b /dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild
parent3349a45d27782395492a86f7d571cc8a690cae56 (diff)
downloadgentoo-9ca86cb31b2ddf3740a4e9ee11437f5f09a49ce8.tar.gz
gentoo-9ca86cb31b2ddf3740a4e9ee11437f5f09a49ce8.tar.bz2
gentoo-9ca86cb31b2ddf3740a4e9ee11437f5f09a49ce8.zip
dev-python/python-distutils-extra: Fix tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild')
-rw-r--r--dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild b/dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild
index c279a3684ff1..8952cf77dcda 100644
--- a/dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild
+++ b/dev-python/python-distutils-extra/python-distutils-extra-2.44.ebuild
@@ -18,14 +18,19 @@ SRC_URI="
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
DOCS=( doc/{README,FAQ} )
-src_prepare() {
- sed -e 's:test_requires_provides:_&:' \
- -i test/auto.py || die
- distutils-r1_src_prepare
-}
+BDEPEND="
+ dev-libs/gobject-introspection
+ dev-python/httplib2
+ dev-python/pygobject"
+
+PATCHES=(
+ "${FILESDIR}"/python-distutils-extra-2.44-test.patch
+)
python_test() {
unset PYTHONDONTWRITEBYTECODE