Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / libevdev / default.nix
blob44213cdd14cf35f3cb0b1dd7856d856d14519b7d
1 { lib
2 , buildPythonPackage
3 , isPy27
4 , fetchPypi
5 , substituteAll
6 , pkgs
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "libevdev";
12   version = "0.11";
13   format = "setuptools";
14   disabled = isPy27;
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-6coAak3ySIpgvZp0ABHulI2BkEviNk8BflYBaVCPVg8=";
19   };
21   patches = [
22     (substituteAll {
23       src = ./fix-paths.patch;
24       libevdev = lib.getLib pkgs.libevdev;
25     })
26   ];
28   nativeCheckInputs = [ pytestCheckHook ];
30   meta = with lib; {
31     description = "Python wrapper around the libevdev C library";
32     homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
33     license = licenses.mit;
34     maintainers = with maintainers; [ nickhu ];
35   };