Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchFromGitHub, python3Packages }: 2 3python3Packages.buildPythonPackage rec { 4 pname = "evdevremapkeys"; 5 version = "unstable-2021-05-04"; 6 7 src = fetchFromGitHub { 8 owner = "philipl"; 9 repo = pname; 10 rev = "9b6f372a9bdf8b27d39f7e655b74f6b9d1a8467f"; 11 sha256 = "sha256-FwRbo0RTiiV2AB7z6XOalMnwMbj15jM4Dxs41TsIOQI="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ 15 pyyaml 16 pyxdg 17 python-daemon 18 evdev 19 pyudev 20 ]; 21 22 # hase no tests 23 doCheck = false; 24 25 pythonImportsCheck = [ "evdevremapkeys" ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/philipl/evdevremapkeys"; 29 description = "Daemon to remap events on linux input devices"; 30 license = licenses.mit; 31 maintainers = [ maintainers.q3k ]; 32 platforms = platforms.linux; 33 }; 34}