guru/dev-python/asgi-lifespan/asgi-lifespan-1.0.1.ebuild
Anna (cybertailor) Vyalkova f1236fe7ee
dev-python/asgi-lifespan: new package, add 1.0.1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-11-03 06:25:25 +05:00

46 lines
1.3 KiB
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..11} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="Programmatic startup/shutdown of ASGI apps"
HOMEPAGE="
https://pypi.org/project/asgi-lifespan/
https://github.com/florimondmanca/asgi-lifespan
"
SRC_URI="https://github.com/florimondmanca/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-python/sniffio[${PYTHON_USEDEP}]"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-trio[${PYTHON_USEDEP}]
dev-python/starlette[${PYTHON_USEDEP}]
dev-python/trio[${PYTHON_USEDEP}]
)
"
EPYTEST_DESELECT=(
"tests/test_manager.py::test_lifespan_manager[asyncio-None-ValueError-None]"
"tests/test_manager.py::test_lifespan_manager[asyncio-ValueError-None-None]"
"tests/test_manager.py::test_lifespan_manager[asyncio-ValueError-ValueError-None]"
"tests/test_manager.py::test_lifespan_manager[trio-None-ValueError-None]"
"tests/test_manager.py::test_lifespan_manager[trio-ValueError-None-None]"
"tests/test_manager.py::test_lifespan_manager[trio-ValueError-ValueError-None]"
)
distutils_enable_tests pytest
python_prepare_all() {
rm setup.cfg || die
distutils-r1_python_prepare_all
}