2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
isPy27,
|
|
|
|
fetchPypi,
|
|
|
|
substituteAll,
|
|
|
|
pkgs,
|
|
|
|
pytestCheckHook,
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libevdev";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.11";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-06-18 07:06:33 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-6coAak3ySIpgvZp0ABHulI2BkEviNk8BflYBaVCPVg8=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
2021-02-05 17:12:51 +00:00
|
|
|
libevdev = lib.getLib pkgs.libevdev;
|
2020-08-20 17:08:02 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "Python wrapper around the libevdev C library";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
};
|
|
|
|
}
|