depot/third_party/nixpkgs/pkgs/development/python-modules/libevdev/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

35 lines
707 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, substituteAll
, pkgs
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "libevdev";
version = "0.9";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "17agnigmzscmdjqmrylg1lza03hwjhgxbpf4l705s6i7p7ndaqrs";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
libevdev = lib.getLib pkgs.libevdev;
})
];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Python wrapper around the libevdev C library";
homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
license = licenses.mit;
maintainers = with maintainers; [ nickhu ];
};
}