From def16babc345782ebd329042b13d03f91175ace8 Mon Sep 17 00:00:00 2001 From: JoanCoCo Date: Mon, 30 Dec 2024 11:47:47 +0900 Subject: [PATCH] overrides: fix pyside6 Clean the `__pycache__` folder to avoid collisions between `pyside6`, `pyside6-addons`, and `pyside6-essentials`. Related to: https://github.com/nix-community/poetry2nix/pull/1808 --- overrides/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/overrides/default.nix b/overrides/default.nix index ef08f4968..71a01072f 100644 --- a/overrides/default.nix +++ b/overrides/default.nix @@ -2949,6 +2949,9 @@ lib.composeManyExtensions [ pkgs.xorg.libxshmfence pkgs.xorg.libxkbfile ]; + postInstall = '' + rm -r $out/${final.python.sitePackages}/PySide6/__pycache__/ + ''; }); pyside6 = prev.pyside6.overridePythonAttrs (_old: { # The PySide6/__init__.py script tries to find the Qt libraries @@ -2963,6 +2966,7 @@ lib.composeManyExtensions [ postFixup = '' ${pkgs.xorg.lndir}/bin/lndir ${final.pyside6-essentials}/${final.python.sitePackages}/PySide6 $out/${final.python.sitePackages}/PySide6 ${pkgs.xorg.lndir}/bin/lndir ${final.pyside6-addons}/${final.python.sitePackages}/PySide6 $out/${final.python.sitePackages}/PySide6 + rm -r $out/${final.python.sitePackages}/PySide6/__pycache__/ ''; });