1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 pyperclip,
6 fetchFromGitHub,
7 xlib,
8 pillow,
9}:
10buildPythonPackage rec {
11 pname = "mouseinfo";
12 version = "0.1.3";
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 broken = stdenv.isDarwin;
38 description = "An application to display XY position and RGB color information for the pixel currently under the mouse. Works on Python 2 and 3.";
39 homepage = "https://github.com/asweigart/mouseinfo";
40 license = licenses.gpl3;
41 maintainers = with maintainers; [ lucasew ];
42 };
43}