diff --git a/dev-python/wxpython/Manifest b/dev-python/wxpython/Manifest new file mode 100644 index 0000000..e2539a6 --- /dev/null +++ b/dev-python/wxpython/Manifest @@ -0,0 +1 @@ +DIST wxpython-4.0.3.tar.gz 68545642 SHA256 8d0dfc0146c24749ce00d575e35cc2826372e809d5bc4a57bde6c89031b59e75 SHA512 911dd98d15b0cbc2551f1b22a21fdae4450656ca59cc93216b7c6a8a00e399b929b78484637992d78cecffb098b8d8dc408c24795549827e2f90ce42740c3bf9 WHIRLPOOL 816126c9d37e3f3d3c2ca11e3e7f4aeed027afc0b3d3fb51b2115d4d73aa98f2ef897e6d16b1dfe80333ab5f84de90a0a42b41676607b90a0ce1edb9e68f60be diff --git a/dev-python/wxpython/metadata.xml b/dev-python/wxpython/metadata.xml new file mode 100644 index 0000000..f6588d2 --- /dev/null +++ b/dev-python/wxpython/metadata.xml @@ -0,0 +1,18 @@ + + + + + wxwidgets@gentoo.org + Gentoo wxWidgets Project + + + python@gentoo.org + Python + + + Install interactive demo module browser and sample applets. + + + wxpython + + diff --git a/dev-python/wxpython/wxpython-4.0.3.ebuild b/dev-python/wxpython/wxpython-4.0.3.ebuild new file mode 100644 index 0000000..f3dabe1 --- /dev/null +++ b/dev-python/wxpython/wxpython-4.0.3.ebuild @@ -0,0 +1,61 @@ +# 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 +}