about summary refs log tree commit diff
path: root/pkgs/development/python-modules/evdev/default.nix
blob: 98f7e3c4f7c1c0f531e3aecfec4543706c87767a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
  };
}