1{
2 lib,
3 buildPythonPackage,
4 pyperclip,
5 fetchFromGitHub,
6 xlib,
7 pillow,
8}:
9buildPythonPackage {
10 pname = "mouseinfo";
11 version = "0.1.3";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "asweigart";
16 repo = "mouseinfo";
17 rev = "1876ad5cd311b4352d46bc64a12edfb4da49974e";
18 hash = "sha256-UTaHTJE0xFihN9r+DY/WhekZ7S/CXtMFbqAayzexRxk=";
19 };
20
21 patches = [
22 ./fix-xlib-version.patch
23 ./pillow-version.patch
24 ];
25
26 doCheck = false;
27 # Mouseinfo requires a X server running to import successfully
28 # pythonImportsCheck = [ "mouseinfo" ];
29
30 propagatedBuildInputs = [
31 pyperclip
32 xlib
33 pillow
34 ];
35
36 meta = with lib; {
37 description = "Application to display XY position and RGB color information for the pixel currently under the mouse. Works on Python 2 and 3";
38 homepage = "https://github.com/asweigart/mouseinfo";
39 license = licenses.gpl3;
40 maintainers = with maintainers; [ lucasew ];
41 };
42}