diff options
Diffstat (limited to 'pkgs/development/python-modules/evdev')
-rw-r--r-- | pkgs/development/python-modules/evdev/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/evdev/default.nix b/pkgs/development/python-modules/evdev/default.nix new file mode 100644 index 000000000000..98f7e3c4f7c1 --- /dev/null +++ b/pkgs/development/python-modules/evdev/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, isPy34, fetchurl, linuxHeaders }: + +buildPythonPackage rec { + version = "0.6.4"; + name = "evdev-${version}"; + disabled = isPy34; # see http://bugs.python.org/issue21121 + + src = fetchurl { + url = "mirror://pypi/e/evdev/${name}.tar.gz"; + sha256 = "1wkag91s8j0f45jx5n619z354n8pz8in9krn81hp7hlkhi6p8s2j"; + }; + + buildInputs = [ linuxHeaders ]; + + patchPhase = "sed -e 's#/usr/include/linux/#${linuxHeaders}/include/linux/#g' -i setup.py"; + + doCheck = false; + + meta = with lib; { + description = "Provides bindings to the generic input event interface in Linux"; + homepage = http://pythonhosted.org/evdev; + license = licenses.bsd3; + maintainers = with maintainers; [ goibhniu ]; + platforms = platforms.linux; + }; +} |