dev-python/mautrix - 0.21.1 (guru)

Search

Install

Install this version:

emerge -a =dev-python/mautrix-0.21.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/mautrix-0.21.1

Or alternatively:

emerge --autounmask-write -a =dev-python/mautrix-0.21.1

Package Information

Description:
A Python 3 asyncio Matrix framework
Homepage:
https://pypi.org/project/mautrix/ https://github.com/mautrix/python
License:
MPL-2.0

Ebuild Details

Version EAPI Keywords Slot
0.21.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-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 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/base58[${PYTHON_USEDEP}]
		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/ruamel-yaml[${PYTHON_USEDEP}]
	)
"

EPYTEST_PLUGINS=( pytest-asyncio )

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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/mautrix | euse -E <flag> -p dev-python/mautrix | euse -D <flag> -p dev-python/mautrix

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	dev-python/aiohttp[]
	dev-python/attrs[]
	dev-python/yarl[]
	crypt? (
		dev-python/base58[]
		dev-python/python-olm[]
		dev-python/pycryptodome[]
		dev-python/unpaddedbase64[]
	)

RDEPEND

	dev-python/aiohttp[]
	dev-python/attrs[]
	dev-python/yarl[]
	crypt? (
		dev-python/base58[]
		dev-python/python-olm[]
		dev-python/pycryptodome[]
		dev-python/unpaddedbase64[]
	)

BDEPEND

	test? (
		dev-python/aiosqlite[]
		dev-python/asyncpg[]
		dev-python/ruamel-yaml[]
	)

Manifest for 0.21.1

Type File Size Source URLs
DIST mautrix-0.21.1.gh.tar.gz 255131 bytes https://github.com/mautrix/python/archive/refs/tags/v0.21.1.tar.gz