depot/third_party/nixpkgs/pkgs/development/python-modules/libevdev/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

35 lines
713 B
Nix

{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, substituteAll
, pkgs
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "libevdev";
version = "0.11";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-6coAak3ySIpgvZp0ABHulI2BkEviNk8BflYBaVCPVg8=";
};
patches = [
(substituteAll {
src = ./fix-paths.patch;
libevdev = lib.getLib pkgs.libevdev;
})
];
nativeCheckInputs = [ 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 ];
};
}