1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_{6,7} )
9 DESCRIPTION="A lightweight library for converting complex datatypes to and from native Python datatypes."
10 HOMEPAGE="https://github.com/marshmallow-code/marshmallow/"
11 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
15 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
17 RESTRICT="!test? ( test )"
20 dev-python/python-dateutil[${PYTHON_USEDEP}]
23 dev-python/setuptools[${PYTHON_USEDEP}]
25 dev-python/pytest[${PYTHON_USEDEP}]
26 dev-python/simplejson[${PYTHON_USEDEP}]
30 distutils-r1_src_prepare
34 if [[ ${EPYTHON} == python2.7 ]]; then
35 rm -rf tests/test_py3 || die
37 py.test -v || die "tests failed under ${EPYTHON}"