depot/third_party/nixpkgs/pkgs/development/python-modules/evdev/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

27 lines
686 B
Nix

{ lib, buildPythonPackage, fetchPypi, linuxHeaders }:
buildPythonPackage rec {
pname = "evdev";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-WzOxdPfIRXbn3WBx5Di/WtIn2pXv1DVqOf5Mg1VBL+Y=";
};
buildInputs = [ linuxHeaders ];
patchPhase = ''
substituteInPlace setup.py --replace /usr/include/linux ${linuxHeaders}/include/linux
'';
doCheck = false;
meta = with lib; {
description = "Provides bindings to the generic input event interface in Linux";
homepage = "https://pythonhosted.org/evdev";
license = licenses.bsd3;
maintainers = with maintainers; [ goibhniu ];
platforms = platforms.linux;
};
}