11 python3.pkgs.buildPythonApplication rec {
17 url = "https://git.kernel.org/pub/scm/utils/tuna/tuna.git/snapshot/tuna-v${version}.tar.gz";
18 hash = "sha256-t10CxtwnTOg1uQgm6mTrNUIU8LkXJ3BkTycjWteQvuU=";
22 mv tuna-cmd.py tuna/cmd.py
24 substituteInPlace setup.py \
25 --replace-fail 'packages = ["tuna", "tuna/gui"],' \
26 'packages = ["tuna", "tuna/gui"], entry_points={"console_scripts":["tuna=tuna.cmd:main"]},'
28 substituteInPlace tuna/tuna_gui.py \
29 --replace-fail "self.binpath + 'pkexec'" "'/run/wrappers/bin/pkexec'" \
30 --replace-fail 'tuna_glade_dirs = [".", "tuna", "/usr/share/tuna"]' "tuna_glade_dirs = [ \"$out/share/tuna\" ]"
33 build-system = with python3.pkgs; [ setuptools ];
42 dependencies = with python3.pkgs; [
49 mkdir -p $out/share/tuna
50 cp tuna/tuna_gui.glade $out/share/tuna/
55 pythonImportsCheck = [ "tuna" ];
58 description = "Thread and IRQ affinity setting GUI and cmd line tool";
60 homepage = "https://git.kernel.org/pub/scm/utils/tuna/tuna.git";
61 license = licenses.gpl2Plus;
62 platforms = platforms.linux;