1
0
mirror of synced 2024-06-01 18:28:11 +02:00
TheChymera-overlay/dev-python/wxpython/wxpython-4.0.3.ebuild
Horea Christian 4aa8b74b29 Version bump
ahead of main tree
(unsubmitted)
2018-10-07 04:33:31 +02:00

62 lines
1.6 KiB
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
WX_GTK_VER="3.0"
inherit distutils-r1 wxwidgets
P_HASH="bd55ab40e406a026a7fda0bb5eb61f466682544ae91ac26267c750f5e618"
MY_PN="wxPython"
DESCRIPTION="A blending of the wxWindows C++ class library with Python"
HOMEPAGE="http://www.wxpython.org/"
SRC_URI="https://files.pythonhosted.org/packages/dd/31/${P_HASH}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="wxWinLL-3"
SLOT="3.0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND="
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pypubsub[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/twine[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
"
DEPEND="
dev-python/pip[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
dev-python/pytest[${PYTHON_USEDEP}]
)
"
S="${WORKDIR}/${MY_PN}-${PV}"
python_prepare_all() {
if use test; then
# Errors reported upstream: https://github.com/wxWidgets/Phoenix/issues/1025
sed -i \
-e "/class GetAutoCompleteListTestCase(GetAttributeTestCase):/i@unittest.skip('Known to fail')" \
-e "/class GetAttributeNamesTestCase(GetAttributeTestCase):/i@unittest.skip('Known to fail')" \
wx/py/tests/test_introspect.py || die
fi
distutils-r1_python_prepare_all
}
python_test() {
distutils-r1_install_for_testing
cd "${BUILD_DIR}/lib/wx/py/tests" || die
${EPYTHON} -m unittest discover || die
}