mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=hatchling
|
|
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="Utility classes and functions for AnyIO"
|
|
HOMEPAGE="
|
|
https://github.com/davidbrochart/anyioutils/
|
|
https://pypi.org/project/anyioutils/
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
IUSE="test-rust"
|
|
|
|
RDEPEND="
|
|
<dev-python/anyio-5[${PYTHON_USEDEP}]
|
|
>=dev-python/anyio-4.8.0[${PYTHON_USEDEP}]
|
|
<dev-python/outcome-2[${PYTHON_USEDEP}]
|
|
>=dev-python/outcome-1.3.0[${PYTHON_USEDEP}]
|
|
"
|
|
BDEPEND="
|
|
test? (
|
|
test-rust? (
|
|
dev-python/trio[${PYTHON_USEDEP}]
|
|
)
|
|
)
|
|
"
|
|
|
|
EPYTEST_PLUGINS=( anyio )
|
|
distutils_enable_tests pytest
|
|
|
|
python_test() {
|
|
local EPYTEST_DESELECT=(
|
|
# requires aioguest
|
|
tests/test_guest.py::test_host_trivial_guest_asyncio
|
|
)
|
|
local EPYTEST_IGNORE=()
|
|
|
|
local args=()
|
|
if ! has_version "dev-python/trio[${PYTHON_USEDEP}]"; then
|
|
EPYTEST_IGNORE+=( tests/test_guest.py )
|
|
args+=( -k "not trio" )
|
|
fi
|
|
|
|
epytest "${args[@]}"
|
|
}
|