nixpkgs/pkgs/development/python-modules/libevdev/default.nix
Martin Weinelt bff8570be5 python3Packages.libevdev: 0.12 -> 0.13.1
This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:27 +01:00

37 lines
738 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
replaceVars,
pkgs,
hatchling,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "libevdev";
version = "0.13.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-3DNpzRQBdnueyxEXzWtz+rqQOOO9nhaVpxCp6dlBXo0=";
};
patches = [
(replaceVars ./fix-paths.patch {
libevdev = lib.getLib pkgs.libevdev;
})
];
build-system = [ hatchling ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Python wrapper around the libevdev C library";
homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nickhu ];
};
}