2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, sphinx, setuptools-lint, xlib, evdev }:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynput";
|
2021-10-17 02:12:59 +00:00
|
|
|
version = "1.7.4";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-17 02:12:59 +00:00
|
|
|
sha256 = "16fecc4d1e53a28fb7c669c79e189c3f2cde14a08d6b457c3da07075c82f3b4c";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ sphinx ];
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
propagatedBuildInputs = [ setuptools-lint xlib ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [
|
2020-12-07 07:45:13 +00:00
|
|
|
evdev
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "A library to control and monitor input devices";
|
|
|
|
homepage = "https://github.com/moses-palmer/pynput";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|