1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # One test; FAIL: test_encodeToUTF8 (__main__.UltraJSONTests) under py2.5.
7 # Fix and repair and re-insert if it's REALLY needed
8 PYTHON_COMPAT=( python2_7 python3_5 )
12 DESCRIPTION="Ultra fast JSON encoder and decoder for Python"
13 HOMEPAGE="https://pypi.org/project/ujson/"
14 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
18 KEYWORDS="amd64 arm x86"
22 dev-python/setuptools[${PYTHON_USEDEP}]
23 dev-python/nose[${PYTHON_USEDEP}]
28 "${FILESDIR}"/${P}-test-py3.patch
32 # See setup.py; line 72. Again "${S}" is used for reading tests
33 # Since py3_2 is first in the queue it needs its own copy
34 # or else all py2s to follow will be reading read py3 tests
35 if [[ "${EPYTHON}" =~ 'python3' ]]; then
36 cd "${BUILD_DIR}"/lib || die
37 cp -a "${S}"/tests/ . || die
38 2to3 -w tests/tests.py || die
39 "${PYTHON}" tests/tests.py || die
42 "${PYTHON}" tests/tests.py || die