nixpkgs/pkgs/development/python-modules/evdev/default.nix
2022-09-18 23:57:41 +02:00

28 lines
686 B
Nix

{ lib, buildPythonPackage, fetchPypi, linuxHeaders }:
buildPythonPackage rec {
pname = "evdev";
version = "1.6.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-7PoBtchPfoxs7TNnrJUoj0PNhO+/1919DNv8DRjIemo=";
};
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;
};
}