fix: unset PYTHONPATH to prevent Python 3.12 ABI contamination #3

Merged
luis merged 1 commits from :main into main 2026-05-28 09:34:03 +02:00
Showing only changes of commit 9c01a07231 - Show all commits

View File

@@ -178,6 +178,12 @@ python3Packages.buildPythonApplication rec {
--replace-quiet '">=2.4.5"' '""'
'';
# PYTHONPATH from the host environment (e.g., mautrix bridge injecting
# Python 3.12 site-packages) causes C extension ABI mismatches on NixOS.
# The wrapper's own sys.path has the correct closure packages, so we
# unset the external PYTHONPATH to prevent contamination.
makeWrapperArgs = [ "--unset" "PYTHONPATH" ];
dontCheckRuntimeDeps = true;
catchConflicts = false;