1 { lib, fetchFromGitHub, python3Packages }:
3 python3Packages.buildPythonPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-fCl+XY+R+QF7jWLkqii4v0sbXr7xoX3A3upm+XoBAms=";
14 propagatedBuildInputs = with python3Packages; [ hidapi setuptools ];
16 checkInputs = [ python3Packages.pytest ];
17 checkPhase = "pytest";
24 mkdir -p $out/lib/udev/rules.d
25 tmpl_udev="$out/lib/udev/rules.d/99-rivalcfg.rules"
26 tmpudev="''${tmpl_udev}.in"
27 finaludev="$tmpl_udev"
28 "$out/bin/rivalcfg" --print-udev > "$tmpudev"
29 substitute "$tmpudev" "$out/lib/udev/rules.d/99-rivalcfg.rules" \
30 --replace MODE=\"0666\" "MODE=\"0664\", GROUP=\"input\""
35 description = "Utility program that allows you to configure SteelSeries Rival gaming mice";
36 homepage = "https://github.com/flozz/rivalcfg";
37 license = licenses.wtfpl;
38 maintainers = with maintainers; [ ornxka ];