mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-13 19:43:02 +08: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>
37 lines
726 B
Nix
37 lines
726 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
isPy27,
|
|
fetchPypi,
|
|
replaceVars,
|
|
pkgs,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libevdev";
|
|
version = "0.12";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-AulSYy7GwknLucZvb6AAEupEiwZgbHfNE5EzvC/kawg=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./fix-paths.patch {
|
|
libevdev = lib.getLib pkgs.libevdev;
|
|
})
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|