Skip to content

Commit 1850747

Browse files
alt-glitchteknium1
authored andcommitted
refactor(matrix): swap matrix-nio for mautrix-python dependency
matrix-nio pulls in peewee -> atomicwrites (sdist-only, archived, missing build-system metadata) which breaks nix flake builds. mautrix-python publishes wheels, has a leaner dep tree, and its [encryption] extra uses the same python-olm without the problematic transitive chain.
1 parent a8fd725 commit 1850747

3 files changed

Lines changed: 27 additions & 60 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dev = ["debugpy>=1.8.0,<2", "pytest>=9.0.2,<10", "pytest-asyncio>=1.3.0,<2", "py
4343
messaging = ["python-telegram-bot[webhooks]>=22.6,<23", "discord.py[voice]>=2.7.1,<3", "aiohttp>=3.13.3,<4", "slack-bolt>=1.18.0,<2", "slack-sdk>=3.27.0,<4"]
4444
cron = ["croniter>=6.0.0,<7"]
4545
slack = ["slack-bolt>=1.18.0,<2", "slack-sdk>=3.27.0,<4"]
46-
matrix = ["matrix-nio[e2e]>=0.24.0,<1", "Markdown>=3.6,<4"]
46+
matrix = ["mautrix[encryption]>=0.20,<1", "Markdown>=3.6,<4"]
4747
cli = ["simple-term-menu>=1.0,<2"]
4848
tts-premium = ["elevenlabs>=1.0,<2"]
4949
voice = [

tests/test_project_metadata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def _load_optional_dependencies():
1212

1313

1414
def test_matrix_extra_linux_only_in_all():
15-
"""matrix-nio[e2e] depends on python-olm which is upstream-broken on modern
16-
macOS (archived libolm, C++ errors with Clang 21+). The [matrix] extra is
17-
included in [all] but gated to Linux via a platform marker so that
18-
``hermes update`` doesn't fail on macOS."""
15+
"""mautrix[encryption] depends on python-olm which is upstream-broken on
16+
modern macOS (archived libolm, C++ errors with Clang 21+). The [matrix]
17+
extra is included in [all] but gated to Linux via a platform marker so
18+
that ``hermes update`` doesn't fail on macOS."""
1919
optional_dependencies = _load_optional_dependencies()
2020

2121
assert "matrix" in optional_dependencies

uv.lock

Lines changed: 22 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)