mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 08:24:10 +01:00
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>
40 lines
871 B
Nix
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;
|
|
};
|
|
}
|