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