15 buildPythonPackage rec {
19 src = fetchFromGitHub {
22 rev = "5e4acb870f2e7ce0ea1927cc5188bc2f5ab7bbbc";
23 hash = "sha256-R9tcTqxUaqw63FLOGFRaO/Oz6kD7V6MPHdQ8A29NdXw=";
26 nativeCheckInputs = [ xvfb-run scrot ];
28 xvfb-run python -c 'import pyautogui'
29 # The tests depend on some specific things that xvfb cant provide, like keyboard and mouse
30 # xvfb-run python -m unittest tests.test_pyautogui
34 # https://github.com/asweigart/pyautogui/issues/598
35 ./fix-locateOnWindow-and-xlib.patch
38 propagatedBuildInputs = [
50 description = "PyAutoGUI lets Python control the mouse and keyboard, and other GUI automation tasks.";
51 homepage = "https://github.com/asweigart/pyautogui";
52 license = licenses.bsd3;
53 maintainers = with maintainers; [ lucasew ];