From 833db48ad16147e5a855133df643005cef0e4f9e Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 20 Feb 2025 16:40:08 +0100 Subject: [PATCH] hplip: fix building with python 3.12 Fixes #383676 Apparently distutils is now needed for the configure script to find the reference to the Python header files --- pkgs/by-name/hp/hplip/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/hp/hplip/package.nix b/pkgs/by-name/hp/hplip/package.nix index 619478ad6b00..5b75315c16e7 100644 --- a/pkgs/by-name/hp/hplip/package.nix +++ b/pkgs/by-name/hp/hplip/package.nix @@ -11,7 +11,7 @@ zlib, libjpeg, libusb1, - python311Packages, + python3Packages, sane-backends, dbus, file, @@ -78,7 +78,7 @@ assert builtins.elem hplipArch pluginArches || throw "HPLIP plugin not supported on ${stdenv.hostPlatform.system}"; -python311Packages.buildPythonApplication { +python3Packages.buildPythonApplication { inherit pname version; format = "other"; @@ -121,7 +121,7 @@ python311Packages.buildPythonApplication { ] ++ lib.optional withQt5 qt5.wrapQtAppsHook; pythonPath = - with python311Packages; + with python3Packages; [ dbus pillow @@ -130,6 +130,7 @@ python311Packages.buildPythonApplication { usbutils dbus-python distro + distutils ] ++ lib.optionals withQt5 [ pyqt5 @@ -342,7 +343,7 @@ python311Packages.buildPythonApplication { "share/hplip" "lib/cups/backend" "lib/cups/filter" - python311Packages.python.sitePackages + python3Packages.python.sitePackages "lib/sane" ];