evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pyautogui / fix-locateOnWindow-and-xlib.patch
blobef0c028922380d144cf81241fc43bc66c5617fea
1 diff --git a/pyautogui/__init__.py b/pyautogui/__init__.py
2 index ec7d097..443b146 100644
3 --- a/pyautogui/__init__.py
4 +++ b/pyautogui/__init__.py
5 @@ -216,9 +216,9 @@ try:
7 @raisePyAutoGUIImageNotFoundException
8 def locateOnWindow(*args, **kwargs):
9 - return pyscreeze.locateOnWindow(*args, **kwargs)
10 + return pyscreeze.locateOnScreen(*args, **kwargs)
12 - locateOnWindow.__doc__ = pyscreeze.locateOnWindow.__doc__
13 + locateOnWindow.__doc__ = pyscreeze.locateOnScreen.__doc__
16 except ImportError:
17 diff --git a/setup.py b/setup.py
18 index 196394d..6d90a88 100644
19 --- a/setup.py
20 +++ b/setup.py
21 @@ -29,8 +29,7 @@ setup(
22 test_suite='tests',
23 install_requires=['pyobjc-core;platform_system=="Darwin"',
24 'pyobjc;platform_system=="Darwin"',
25 - 'python3-Xlib;platform_system=="Linux" and python_version>="3.0"',
26 - 'python-xlib;platform_system=="Linux" and python_version<"3.0"',
27 + 'python-xlib;platform_system=="Linux"',
28 'pymsgbox',
29 'PyTweening>=1.0.1',
30 'pyscreeze>=0.1.21',