gentoo/dev-python/agate/agate-1.6.3-r2.ebuild
Yu Gu 4a4c56d3fe
dev-python/agate: keyword 1.6.3-r2 for ~riscv
Closes: https://github.com/gentoo/gentoo/pull/24792
Signed-off-by: Yu Gu <guyu2876@gmail.com>
Signed-off-by: Zac Medico <zmedico@gentoo.org>
2022-03-28 15:48:32 -07:00

43 lines
1.3 KiB
Bash

# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="A Python data analysis library that is optimized for humans instead of machines"
HOMEPAGE="https://github.com/wireservice/agate https://pypi.org/project/agate/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~riscv"
RDEPEND="
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
>=dev-python/pytimeparse-1.1.5[${PYTHON_USEDEP}]
>=dev-python/parsedatetime-2.1[${PYTHON_USEDEP}]
>=dev-python/Babel-2.0[${PYTHON_USEDEP}]
>=dev-python/isodate-0.5.4[${PYTHON_USEDEP}]
>=dev-python/pyicu-2.4.2[${PYTHON_USEDEP}]
>=dev-python/python-slugify-1.2.1[${PYTHON_USEDEP}]
>=dev-python/leather-0.3.3-r2[${PYTHON_USEDEP}]
"
BDEPEND="test? ( dev-python/lxml[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/sphinx_rtd_theme
EPYTEST_DESELECT=(
# require specific locales
tests/test_data_types.py::TestDate::test_cast_format_locale
tests/test_data_types.py::TestDateTime::test_cast_format_locale
)
python_prepare_all() {
sed -i -e "s:\\(parsedatetime>=2.1\\),[^']*:\1:" -i setup.py || die
distutils-r1_python_prepare_all
}