1{ stdenv
2, lib
3, buildPythonPackage
4, pyperclip
5, fetchFromGitHub
6, xlib
7, pillow
8}:
9buildPythonPackage rec {
10 pname = "MouseInfo";
11 version = "0.1.3";
12
13 src = fetchFromGitHub {
14 owner = "asweigart";
15 repo = "mouseinfo";
16 rev = "1876ad5cd311b4352d46bc64a12edfb4da49974e";
17 hash = "sha256-UTaHTJE0xFihN9r+DY/WhekZ7S/CXtMFbqAayzexRxk=";
18 };
19
20 patches = [
21 ./fix-xlib-version.patch
22 ./pillow-version.patch
23 ];
24
25 doCheck = false;
26 # Mouseinfo requires a X server running to import successfully
27 # pythonImportsCheck = [ "mouseinfo" ];
28
29 propagatedBuildInputs = [
30 pyperclip
31 xlib
32 pillow
33 ];
34
35 meta = with lib; {
36 broken = stdenv.isDarwin;
37 description = "An 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}