aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/libevdev/default.nix
blob: a17612c79cbc3b077f2893f46f086bdbf4f23c9e (plain)
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
27
28
29
30
31
32
33
34
35
{ stdenv
, buildPythonPackage
, isPy27
, fetchPypi
, substituteAll
, pkgs
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "libevdev";
  version = "0.9";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "17agnigmzscmdjqmrylg1lza03hwjhgxbpf4l705s6i7p7ndaqrs";
  };

  patches = [
    (substituteAll {
      src = ./fix-paths.patch;
      libevdev = stdenv.lib.getLib pkgs.libevdev;
    })
  ];

  checkInputs = [ pytestCheckHook ];

  meta = with stdenv.lib; {
    description = "Python wrapper around the libevdev C library";
    homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
    license = licenses.mit;
    maintainers = with maintainers; [ nickhu ];
  };
}