python3Packages.evdev: enable tests (#544000)

This commit is contained in:
Ihar Hrachyshka
2026-07-21 00:49:20 +00:00
committed by GitHub
@@ -4,15 +4,16 @@
fetchPypi,
linuxHeaders,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "evdev";
version = "1.9.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-LBQOAayEN3WPoj/lyHE5dBJGH0LUIaogJB3I/oz8y8k=";
};
@@ -25,16 +26,23 @@ buildPythonPackage rec {
buildInputs = [ linuxHeaders ];
doCheck = false;
pythonImportsCheck = [ "evdev" ];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = [
# tries to open /dev/uinput
"tests/test_uinput.py"
];
meta = {
description = "Provides bindings to the generic input event interface in Linux";
homepage = "https://python-evdev.readthedocs.io/";
changelog = "https://github.com/gvalkov/python-evdev/blob/v${version}/docs/changelog.rst";
changelog = "https://github.com/gvalkov/python-evdev/blob/v${finalAttrs.version}/docs/changelog.rst";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.linux;
};
}
})