nixpkgs/pkgs/development/python-modules/evdev/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

40 lines
871 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
linuxHeaders,
setuptools,
}:
buildPythonPackage rec {
pname = "evdev";
version = "1.9.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-XTJ4iSzh+Sp01r+IjMhSXZ9or4Xb4zbJXRyH+49CMGk=";
};
patchPhase = ''
substituteInPlace setup.py \
--replace-fail /usr/include ${linuxHeaders}/include
'';
build-system = [ setuptools ];
buildInputs = [ linuxHeaders ];
doCheck = false;
pythonImportsCheck = [ "evdev" ];
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";
license = lib.licenses.bsd3;
maintainers = [ ];
platforms = lib.platforms.linux;
};
}