nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 738 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 replaceVars, 6 pkgs, 7 hatchling, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "libevdev"; 13 version = "0.13.1"; 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-3DNpzRQBdnueyxEXzWtz+rqQOOO9nhaVpxCp6dlBXo0="; 19 }; 20 21 patches = [ 22 (replaceVars ./fix-paths.patch { 23 libevdev = lib.getLib pkgs.libevdev; 24 }) 25 ]; 26 27 build-system = [ hatchling ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 meta = { 32 description = "Python wrapper around the libevdev C library"; 33 homepage = "https://gitlab.freedesktop.org/libevdev/python-libevdev"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ nickhu ]; 36 }; 37}