2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, pyperclip
|
|
|
|
, fetchFromGitHub
|
|
|
|
, xlib
|
|
|
|
, pillow
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "MouseInfo";
|
|
|
|
version = "0.1.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asweigart";
|
|
|
|
repo = "mouseinfo";
|
|
|
|
rev = "1876ad5cd311b4352d46bc64a12edfb4da49974e";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-UTaHTJE0xFihN9r+DY/WhekZ7S/CXtMFbqAayzexRxk=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./fix-xlib-version.patch
|
|
|
|
./pillow-version.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
2022-12-28 21:21:41 +00:00
|
|
|
# Mouseinfo requires a X server running to import successfully
|
2021-12-06 16:07:01 +00:00
|
|
|
# pythonImportsCheck = [ "mouseinfo" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyperclip
|
|
|
|
xlib
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "An 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 = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ lucasew ];
|
|
|
|
};
|
|
|
|
}
|