depot/third_party/nixpkgs/pkgs/development/python-modules/mouseinfo/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
976 B
Nix

{
stdenv,
lib,
buildPythonPackage,
pyperclip,
fetchFromGitHub,
xlib,
pillow,
}:
buildPythonPackage rec {
pname = "mouseinfo";
version = "0.1.3";
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; {
broken = stdenv.isDarwin;
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 ];
};
}