blob: a14f77f3625e3608ce6fe158cadacd57dfaa71f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 optfeature
DESCRIPTION="aiomisc - miscellaneous utils for asyncio"
HOMEPAGE="
https://github.com/aiokitchen/aiomisc
https://pypi.org/project/aiomisc/
"
MY_COMMIT="ebfdb45c8d60fda24e42f7589d2fc7fe11ae4f0c" # v18.0.9 (untagged, inferred)
SRC_URI="https://github.com/aiokitchen/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RDEPEND="
>=dev-python/aiothreads-1.0.0[${PYTHON_USEDEP}]
>=dev-python/caio-0.9.0[${PYTHON_USEDEP}]
>=dev-python/colorlog-6.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
>=dev-python/rich-12.6[${PYTHON_USEDEP}]
>=dev-python/setproctitle-1.3[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( aiomisc-pytest )
EPYTEST_XDIST=1
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_AIOMISC=${PV}
EPYTEST_IGNORE=(
# Missing dependencies
tests/test_carbon_service.py # aiocarbon
tests/test_dns.py # dnslib
tests/test_dns_server.py # dnslib
tests/test_entrypoint.py # various
tests/test_raven_service.py # raven
)
EPYTEST_DESELECT=(
# Broken (race conditions)
tests/test_thread_pool.py::test_from_thread_channel
tests/test_thread_pool.py::test_from_thread_channel_wait_before
)
pkg_postinst() {
optfeature "aiohttp" dev-python/aiohttp
# optfeature "ASGI" dev-python/aiohttp-asgi
# optfeature "Carbon" dev-python/aiocarbon
optfeature "cron" dev-python/croniter
# optfeature "DNS" dev-python/dnslib
# optfeature "gRPC" "dev-python/grpcio dev-python/grpcio-tools dev-python/grpcio-reflection"
# optfeature "Raven" "dev-python/aiohttp dev-python/raven"
optfeature "uvicorn" "dev-python/uvicorn dev-python/asgiref"
optfeature "uvloop" dev-python/uvloop
optfeature_header "For additional logging features install:"
optfeature "clorized log output with Rich" dev-python/rich
# optfeature "log output to systemd journald" dev-python/logging-journald
}
|