python3Packages.pynput: fix linux build

This commit is contained in:
Jonathan Ringer 2020-11-29 14:25:00 -08:00 committed by Frederik Rietdijk
parent ff4c38abd9
commit 72ee790f5d

View file

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, sphinx, setuptools-lint, xlib }:
{ stdenv, buildPythonPackage, fetchPypi, sphinx, setuptools-lint, xlib, evdev }:
buildPythonPackage rec {
pname = "pynput";
@ -11,7 +11,10 @@ buildPythonPackage rec {
nativeBuildInputs = [ sphinx ];
propagatedBuildInputs = [ setuptools-lint xlib ];
propagatedBuildInputs = [ setuptools-lint xlib ]
++ stdenv.lib.optionals stdenv.isLinux [
evdev
];
doCheck = false;