mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
Python 3.10 target is scheduled for removal in Gentoo: https://public-inbox.gentoo.org/gentoo-dev/e6ca9f1f4ababb79ab2a3d005c39b483c3ecef6e.camel@gentoo.org/ Sphinx 8.2.0 already dropped support for CPython 3.10 and PyPy 3.10, leading to multiple CI failures in ::guru. We can safely remove this target, because GURU is "experimental" and does not have stable keywords. Let's not remove "pypy3" right now because a) There are not many packages using it. b) So we can see which packages supported PyPy 3.10, and test them with PyPy 3.11. Closes: https://github.com/gentoo/guru/pull/291 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
66 lines
1.5 KiB
Bash
66 lines
1.5 KiB
Bash
# Copyright 2022-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
inherit daemons distutils-r1 optfeature
|
|
|
|
DESCRIPTION="A Python 3 asyncio Matrix framework"
|
|
HOMEPAGE="
|
|
https://pypi.org/project/mautrix/
|
|
https://github.com/mautrix/python
|
|
"
|
|
|
|
# use github tarball for test data
|
|
SRC_URI="https://github.com/mautrix/python/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
|
S="${WORKDIR}/python-${PV}"
|
|
|
|
LICENSE="MPL-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="crypt"
|
|
REQUIRED_USE="test? ( crypt )"
|
|
|
|
RDEPEND="
|
|
dev-python/aiohttp[${PYTHON_USEDEP}]
|
|
dev-python/attrs[${PYTHON_USEDEP}]
|
|
dev-python/yarl[${PYTHON_USEDEP}]
|
|
crypt? (
|
|
dev-python/python-olm[${PYTHON_USEDEP}]
|
|
dev-python/pycryptodome[${PYTHON_USEDEP}]
|
|
dev-python/unpaddedbase64[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
test? (
|
|
dev-python/aiosqlite[${PYTHON_USEDEP}]
|
|
dev-python/asyncpg[${PYTHON_USEDEP}]
|
|
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
|
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
daemons_enable postgresql test
|
|
|
|
# Disabled because of https://bugs.gentoo.org/922488
|
|
#distutils_enable_sphinx docs \
|
|
# dev-python/sphinx-rtd-theme
|
|
|
|
src_test() {
|
|
daemons_start postgresql --host 127.0.0.1
|
|
local -x MEOW_TEST_PG_URL="${POSTGRESQL_URL:?}"
|
|
|
|
distutils-r1_src_test
|
|
daemons_stop postgresql
|
|
}
|
|
|
|
pkg_postinst() {
|
|
optfeature "MIME type detection support" dev-python/python-magic
|
|
optfeature "media transcoding support" media-video/ffmpeg
|
|
}
|