superfile: 1.1.6 -> 1.1.7 (#371308)
[NixPkgs.git] / pkgs / development / python-modules / libevdev / default.nix
blobe7be644cdd5aeb0206e2114cd3c0ebebd570753f
2   lib,
3   buildPythonPackage,
4   isPy27,
5   fetchPypi,
6   substituteAll,
7   pkgs,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "libevdev";
13   version = "0.11";
14   format = "setuptools";
15   disabled = isPy27;
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-6coAak3ySIpgvZp0ABHulI2BkEviNk8BflYBaVCPVg8=";
20   };
22   patches = [
23     (substituteAll {
24       src = ./fix-paths.patch;
25       libevdev = lib.getLib pkgs.libevdev;
26     })
27   ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   meta = with lib; {
32     description = "Python wrapper around the libevdev C library";
33     homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
34     license = licenses.mit;
35     maintainers = with maintainers; [ nickhu ];
36   };