ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / libevdev / default.nix
blob2807804b77d92cf76bf67f387445a048e9130c7e
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   disabled = isPy27;
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "sha256-6coAak3ySIpgvZp0ABHulI2BkEviNk8BflYBaVCPVg8=";
18   };
20   patches = [
21     (substituteAll {
22       src = ./fix-paths.patch;
23       libevdev = lib.getLib pkgs.libevdev;
24     })
25   ];
27   checkInputs = [ pytestCheckHook ];
29   meta = with lib; {
30     description = "Python wrapper around the libevdev C library";
31     homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev";
32     license = licenses.mit;
33     maintainers = with maintainers; [ nickhu ];
34   };