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