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 = "0.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "philipl"; 9 repo = pname; 10 rev = "68fb618b8142e1b45d7a1e19ea9a5a9bbb206144"; 11 sha256 = "0c9slflakm5jqd8s1zpxm7gmrrk0335m040d7m70hnsak42jvs2f"; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ 15 pyyaml 16 pyxdg 17 python-daemon 18 evdev 19 ]; 20 21 # hase no tests 22 doCheck = false; 23 24 pythonImportsCheck = [ "evdevremapkeys" ]; 25 26 meta = with lib; { 27 homepage = "https://github.com/philipl/evdevremapkeys"; 28 description = "Daemon to remap events on linux input devices"; 29 license = licenses.mit; 30 maintainers = [ maintainers.q3k ]; 31 platforms = platforms.linux; 32 }; 33}