guru/dev-python/graphql-core/graphql-core-3.2.3.ebuild
Julien Roy aa1cac3e8f
dev-python/graphql-core: enable py3.12, fix tests
Closes: https://bugs.gentoo.org/921814
Signed-off-by: Julien Roy <julien@jroy.ca>
2024-04-13 17:30:55 -04:00

50 lines
1004 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=poetry
PYPI_NO_NORMALIZE=1
inherit distutils-r1 pypi
DESCRIPTION="Python port of GraphQL.js, the JavaScript reference implementation for GraphQL"
HOMEPAGE="
https://pypi.org/project/graphql-core/
https://github.com/graphql-python/graphql-core
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
$(python_gen_cond_dep \
'dev-python/typing-extensions[${PYTHON_USEDEP}]' python3_9)
"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-describe[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
)
"
EPYTEST_IGNORE=( tests/benchmarks )
distutils_enable_tests pytest
distutils_enable_sphinx docs \
dev-python/sphinx-rtd-theme
src_prepare() {
distutils-r1_src_prepare
sed "/addopts =/d" -i setup.cfg pyproject.toml || die
}
python_test() {
cd "${S}"/tests || die
epytest
}