From 34e63b461564ba89c5a24fdeab08b523220de1ee Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 18 Dec 2019 19:45:32 -0500 Subject: [PATCH] hplip: python2 -> python3 Tested with a local HP printer --- pkgs/misc/drivers/hplip/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/drivers/hplip/default.nix b/pkgs/misc/drivers/hplip/default.nix index fe890f3dce23..39efd0998dc6 100644 --- a/pkgs/misc/drivers/hplip/default.nix +++ b/pkgs/misc/drivers/hplip/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, substituteAll , pkgconfig -, cups, zlib, libjpeg, libusb1, python2Packages, sane-backends +, cups, zlib, libjpeg, libusb1, python3Packages, sane-backends , dbus, file, ghostscript, usbutils , net_snmp, openssl, perl, nettools , bash, coreutils, utillinux @@ -46,7 +46,7 @@ in assert withPlugin -> builtins.elem hplipArch pluginArches || throw "HPLIP plugin not supported on ${stdenv.hostPlatform.system}"; -python2Packages.buildPythonApplication { +python3Packages.buildPythonApplication { inherit name src; format = "other"; @@ -68,7 +68,7 @@ python2Packages.buildPythonApplication { pkgconfig ]; - pythonPath = with python2Packages; [ + pythonPath = with python3Packages; [ dbus pillow pygobject2