Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
957 B
Nix
43 lines
957 B
Nix
{
|
|
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 = with lib; {
|
|
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 = licenses.gpl3;
|
|
maintainers = with maintainers; [ lucasew ];
|
|
};
|
|
}
|