2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, sphinx, setuptools-lint, xlib, evdev }:
|
2020-04-24 00:18:46 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynput";
|
2021-02-20 09:09:14 +00:00
|
|
|
version = "1.7.3";
|
2020-04-24 00:18:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:14 +00:00
|
|
|
sha256 = "4e50b1a0ab86847e87e58f6d1993688b9a44f9f4c88d4712315ea8eb552ef828";
|
2020-04-24 00:18:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ sphinx ];
|
|
|
|
|
2020-11-29 22:25:00 +00:00
|
|
|
propagatedBuildInputs = [ setuptools-lint xlib ]
|
2021-01-24 00:29:22 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [
|
2020-11-29 22:25:00 +00:00
|
|
|
evdev
|
|
|
|
];
|
2020-04-24 00:18:46 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 00:18:46 +01:00
|
|
|
description = "A library to control and monitor input devices";
|
|
|
|
homepage = "https://github.com/moses-palmer/pynput";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|