My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/mouseinfo/default.nix

40 lines
933 B

{ lib
, buildPythonPackage
, pyperclip
, fetchFromGitHub
, xlib
, pillow
}:
buildPythonPackage rec {
pname = "MouseInfo";
version = "0.1.3";
src = fetchFromGitHub {
owner = "asweigart";
repo = "mouseinfo";
rev = "1876ad5cd311b4352d46bc64a12edfb4da49974e";
sha256 = "sha256-UTaHTJE0xFihN9r+DY/WhekZ7S/CXtMFbqAayzexRxk=";
};
patches = [
./fix-xlib-version.patch
./pillow-version.patch
];
doCheck = false;
# Mouseinfo requires a X server running to import succesfully
# pythonImportsCheck = [ "mouseinfo" ];
propagatedBuildInputs = [
pyperclip
xlib
pillow
];
meta = with lib; {
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 ];
};
}