minigalaxy: 1.3.1 -> 1.4.0 (#427963)

Aleksana 369c7fde 921d2fe6

Changed files
+35 -25
pkgs
+8 -8
pkgs/by-name/mi/minigalaxy/inject-launcher-steam-run.diff
···
diff --git a/minigalaxy/launcher.py b/minigalaxy/launcher.py
-
index 641db77..712c55b 100644
--- a/minigalaxy/launcher.py
+++ b/minigalaxy/launcher.py
-
@@ -77,6 +77,7 @@ def get_execute_command(game) -> list:
if game.get_info("use_mangohud") is True:
exe_cmd.insert(0, "mangohud")
exe_cmd.insert(1, "--dlsym")
···
logger.info("Launch command for %s: %s", game.name, " ".join(exe_cmd))
return exe_cmd
diff --git a/tests/test_installer.py b/tests/test_installer.py
-
index 8e6cb76..a9d9f46 100644
--- a/tests/test_installer.py
+++ b/tests/test_installer.py
-
@@ -296,13 +296,13 @@ def test_get_exec_line(self, mock_list_dir, mock_which):
mock_list_dir.return_value = ["data", "docs", "scummvm", "support", "beneath.ini", "gameinfo", "start.sh"]
result1 = installer.get_exec_line(game1)
-
- self.assertEqual(result1, "scummvm -c beneath.ini")
-
+ self.assertEqual(result1, "@steamrun@ scummvm -c beneath.ini")
game2 = Game("Blocks That Matter", install_dir="/home/test/GOG Games/Blocks That Matter", platform="linux")
mock_list_dir.return_value = ["data", "docs", "support", "gameinfo", "start.sh"]
result2 = installer.get_exec_line(game2)
-
- self.assertEqual(result2, "./start.sh")
-
+ self.assertEqual(result2, "@steamrun@ ./start.sh")
@mock.patch('os.path.getsize')
@mock.patch('os.listdir')
···
diff --git a/minigalaxy/launcher.py b/minigalaxy/launcher.py
+
index aeca3e3..aeb6763 100644
--- a/minigalaxy/launcher.py
+++ b/minigalaxy/launcher.py
+
@@ -84,6 +84,7 @@ def get_execute_command(game) -> list:
if game.get_info("use_mangohud") is True:
exe_cmd.insert(0, "mangohud")
exe_cmd.insert(1, "--dlsym")
···
logger.info("Launch command for %s: %s", game.name, " ".join(exe_cmd))
return exe_cmd
diff --git a/tests/test_installer.py b/tests/test_installer.py
+
index d459b62..dee93cb 100644
--- a/tests/test_installer.py
+++ b/tests/test_installer.py
+
@@ -405,13 +405,13 @@ class Test(TestCase):
mock_list_dir.return_value = ["data", "docs", "scummvm", "support", "beneath.ini", "gameinfo", "start.sh"]
result1 = installer.get_exec_line(game1)
+
- self.assertEqual("scummvm -c beneath.ini", result1)
+
+ self.assertEqual("@steamrun@ scummvm -c beneath.ini", result1)
game2 = Game("Blocks That Matter", install_dir="/home/test/GOG Games/Blocks That Matter", platform="linux")
mock_list_dir.return_value = ["data", "docs", "support", "gameinfo", "start.sh"]
result2 = installer.get_exec_line(game2)
+
- self.assertEqual('"/home/test/GOG Games/Blocks That Matter/start.sh"', result2)
+
+ self.assertEqual('@steamrun@ "/home/test/GOG Games/Blocks That Matter/start.sh"', result2)
@mock.patch('os.path.getsize')
@mock.patch('os.listdir')
+27 -17
pkgs/by-name/mi/minigalaxy/package.nix
···
gobject-introspection,
gtk3,
libnotify,
python3Packages,
steam-run,
replaceVars,
unzip,
webkitgtk_4_1,
wrapGAppsHook3,
}:
python3Packages.buildPythonApplication rec {
pname = "minigalaxy";
-
version = "1.3.1";
-
format = "setuptools";
src = fetchFromGitHub {
owner = "sharkwouter";
repo = "minigalaxy";
tag = version;
-
hash = "sha256-nxWJm+CkxZqRMUYQA0ZJKOb2fD1tPYXnYhy+DOnDbkQ=";
};
patches = [
···
})
];
-
postPatch = ''
-
substituteInPlace minigalaxy/installer.py \
-
--replace-fail '"unzip"' "\"${lib.getExe unzip}\"" \
-
--replace-fail "'unzip'" "\"${lib.getExe unzip}\""
-
'';
-
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
···
glib-networking
gtk3
libnotify
];
nativeCheckInputs = with python3Packages; [
···
export HOME=$(mktemp -d)
'';
-
pythonPath = [
-
python3Packages.pygobject3
-
python3Packages.requests
-
webkitgtk_4_1
-
];
-
dontWrapGApps = true;
preFixup = ''
-
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = {
homepage = "https://sharkwouter.github.io/minigalaxy/";
···
downloadPage = "https://github.com/sharkwouter/minigalaxy/releases";
description = "Simple GOG client for Linux";
license = lib.licenses.gpl3;
-
maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.linux;
};
}
···
gobject-introspection,
gtk3,
libnotify,
+
nix-update-script,
python3Packages,
steam-run,
replaceVars,
unzip,
webkitgtk_4_1,
wrapGAppsHook3,
+
xdg-utils,
}:
python3Packages.buildPythonApplication rec {
pname = "minigalaxy";
+
version = "1.4.0";
+
pyproject = true;
src = fetchFromGitHub {
owner = "sharkwouter";
repo = "minigalaxy";
tag = version;
+
hash = "sha256-ZHTjppdLxKDURceonbH7dJz+krBhu3lr2P7QPVDxRZw=";
};
patches = [
···
})
];
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
···
glib-networking
gtk3
libnotify
+
webkitgtk_4_1
+
];
+
+
build-system = with python3Packages; [
+
setuptools
+
];
+
+
dependencies = with python3Packages; [
+
pygobject3
+
requests
];
nativeCheckInputs = with python3Packages; [
···
export HOME=$(mktemp -d)
'';
dontWrapGApps = true;
preFixup = ''
+
makeWrapperArgs+=(
+
"''${gappsWrapperArgs[@]}"
+
--suffix PATH : "${
+
lib.makeBinPath [
+
unzip
+
xdg-utils
+
]
+
}"
+
)
'';
+
+
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://sharkwouter.github.io/minigalaxy/";
···
downloadPage = "https://github.com/sharkwouter/minigalaxy/releases";
description = "Simple GOG client for Linux";
license = lib.licenses.gpl3;
+
maintainers = with lib.maintainers; [ RoGreat ];
platforms = lib.platforms.linux;
};
}