2020-08-20 17:08:02 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchPypi
|
|
|
|
, substituteAll
|
|
|
|
, pkgs
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libevdev";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.9";
|
2020-06-18 07:06:33 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "17agnigmzscmdjqmrylg1lza03hwjhgxbpf4l705s6i7p7ndaqrs";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
libevdev = stdenv.lib.getLib pkgs.libevdev;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python wrapper around the libevdev C library";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
};
|
|
|
|
}
|