virt-manager: only add run time dependencies to PYTHONPATH (#345419)

This commit is contained in:
Franz Pletz 2024-10-02 04:20:56 +02:00 committed by GitHub
commit 7f8d1417d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ python3.pkgs.buildPythonApplication rec {
gsettings-desktop-schemas libosinfo gtksourceview4
] ++ lib.optional spiceSupport spice-gtk;
propagatedBuildInputs = with python3.pkgs; [
dependencies = with python3.pkgs; [
pygobject3 libvirt libxml2 requests cdrtools
];
@ -74,7 +74,7 @@ python3.pkgs.buildPythonApplication rec {
preFixup = ''
glib-compile-schemas $out/share/gsettings-schemas/${pname}-${version}/glib-2.0/schemas
gappsWrapperArgs+=(--set PYTHONPATH "$PYTHONPATH")
gappsWrapperArgs+=(--set PYTHONPATH "${python3.pkgs.makePythonPath dependencies}")
# these are called from virt-install in initrdinject.py
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ cpio e2fsprogs file findutils gzip ]}")