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