From 03b81bed172bca3bbcdd37abcdf5c2abbc433901 Mon Sep 17 00:00:00 2001 From: Timo Gottszky Date: Wed, 3 Jun 2026 12:56:03 +0200 Subject: [PATCH 1/3] python3Packages.pyautogui: migrate to pyproject --- pkgs/development/python-modules/pyautogui/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyautogui/default.nix b/pkgs/development/python-modules/pyautogui/default.nix index 0180cf974966..3e7409f406ba 100644 --- a/pkgs/development/python-modules/pyautogui/default.nix +++ b/pkgs/development/python-modules/pyautogui/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, mouseinfo, pygetwindow, pymsgbox, @@ -16,7 +17,7 @@ buildPythonPackage { pname = "pyautogui"; version = "0.9.53"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "asweigart"; @@ -40,7 +41,11 @@ buildPythonPackage { ./fix-locateOnWindow-and-xlib.patch ]; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ mouseinfo pygetwindow pymsgbox From 7a4508b06d7abf9335bd245e6f7c712530dda496 Mon Sep 17 00:00:00 2001 From: Timo Gottszky Date: Wed, 3 Jun 2026 17:51:53 +0200 Subject: [PATCH 2/3] python3Packages.pyautogui: reorder phases --- .../python-modules/pyautogui/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pyautogui/default.nix b/pkgs/development/python-modules/pyautogui/default.nix index 3e7409f406ba..83d67257337d 100644 --- a/pkgs/development/python-modules/pyautogui/default.nix +++ b/pkgs/development/python-modules/pyautogui/default.nix @@ -26,16 +26,6 @@ buildPythonPackage { hash = "sha256-R9tcTqxUaqw63FLOGFRaO/Oz6kD7V6MPHdQ8A29NdXw="; }; - nativeCheckInputs = [ - xvfb-run - scrot - ]; - checkPhase = '' - xvfb-run python -c 'import pyautogui' - # The tests depend on some specific things that xvfb cant provide, like keyboard and mouse - # xvfb-run python -m unittest tests.test_pyautogui - ''; - patches = [ # https://github.com/asweigart/pyautogui/issues/598 ./fix-locateOnWindow-and-xlib.patch @@ -56,6 +46,17 @@ buildPythonPackage { pytweening ]; + nativeCheckInputs = [ + xvfb-run + scrot + ]; + + checkPhase = '' + xvfb-run python -c 'import pyautogui' + # The tests depend on some specific things that xvfb cant provide, like keyboard and mouse + # xvfb-run python -m unittest tests.test_pyautogui + ''; + meta = { description = "PyAutoGUI lets Python control the mouse and keyboard, and other GUI automation tasks"; homepage = "https://github.com/asweigart/pyautogui"; From 7d000662732c55d333017dcf8eedb1c1939a66c7 Mon Sep 17 00:00:00 2001 From: Timo Gottszky Date: Wed, 3 Jun 2026 18:06:26 +0200 Subject: [PATCH 3/3] python3Packages.pyautogui: add changelog --- pkgs/development/python-modules/pyautogui/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyautogui/default.nix b/pkgs/development/python-modules/pyautogui/default.nix index 83d67257337d..57125a380d67 100644 --- a/pkgs/development/python-modules/pyautogui/default.nix +++ b/pkgs/development/python-modules/pyautogui/default.nix @@ -14,7 +14,7 @@ xvfb-run, scrot, }: -buildPythonPackage { +buildPythonPackage (finalAttrs: { pname = "pyautogui"; version = "0.9.53"; pyproject = true; @@ -60,7 +60,8 @@ buildPythonPackage { meta = { description = "PyAutoGUI lets Python control the mouse and keyboard, and other GUI automation tasks"; homepage = "https://github.com/asweigart/pyautogui"; + changelog = "https://github.com/asweigart/pyautogui/blob/${finalAttrs.src.rev}/CHANGES.txt"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ lucasew ]; }; -} +})