11{
2- python3Packages ,
3- fetchFromGitHub ,
4- lib ,
52 bash ,
3+ cargo ,
4+ fetchFromGitHub ,
65 hatch ,
6+ lib ,
7+ python3Packages ,
8+ rustPlatform ,
79 scdoc ,
8- replaceVars ,
9- fetchpatch2 ,
10+ writableTmpDirAsHomeHook ,
11+ withTruststore ? true ,
12+ withDeltaUpdates ? true ,
1013} :
1114python3Packages . buildPythonPackage rec {
1215 pname = "umu-launcher-unwrapped" ;
13- version = "1.1.4 " ;
16+ version = "1.2.5 " ;
1417
1518 src = fetchFromGitHub {
1619 owner = "Open-Wine-Components" ;
1720 repo = "umu-launcher" ;
1821 tag = version ;
19- hash = "sha256-TOsVK6o2V8D7CLzVOkLs8AClrZmlVQTfeii32ZIQCu4=" ;
22+ hash = "sha256-bZ6Ywc524NrapkFrwFiWbqmVe1j0hunEH9YKrYQ8R2E=" ;
23+ } ;
24+
25+ cargoDeps = rustPlatform . fetchCargoVendor {
26+ inherit src ;
27+ hash = "sha256-nU4xZn9NPd7NgexiaNYLdo4BCbH98duZ07XYeUiceP0=" ;
2028 } ;
2129
22- # Both patches can be safely removed with the next release
23- patches = [
24- # Patch to avoid running `git describe`
25- # Fixed by https://github.com/Open-Wine-Components/umu-launcher/pull/289 upstream
26- ( replaceVars ./no-umu-version-json.patch { inherit version ; } )
27- # Patch to use PREFIX in the installer call
28- ( fetchpatch2 {
29- url = "https://github.com/Open-Wine-Components/umu-launcher/commit/602a2f84a05a63f7b1b1c4d8ca85d99fdaec2cd2.diff" ;
30- hash = "sha256-BMinTXr926V3HlzHHabxHKvy8quEvxsZKu1hoTGQT00=" ;
31- } )
30+ nativeCheckInputs = [
31+ writableTmpDirAsHomeHook
32+ python3Packages . pytestCheckHook
3233 ] ;
3334
3435 nativeBuildInputs = [
35- python3Packages . build
36+ cargo
3637 hatch
37- scdoc
38+ python3Packages . build
3839 python3Packages . installer
40+ rustPlatform . cargoSetupHook
41+ scdoc
3942 ] ;
4043
41- pythonPath = [
42- python3Packages . filelock
43- python3Packages . xlib
44- ] ;
44+ pythonPath =
45+ with python3Packages ;
46+ [
47+ pyzstd
48+ urllib3
49+ xlib
50+ ]
51+ ++ lib . optionals withTruststore [
52+ truststore
53+ ]
54+ ++ lib . optionals withDeltaUpdates [
55+ cbor2
56+ xxhash
57+ ] ;
4558
4659 pyproject = false ;
4760 configureScript = "./configure.sh" ;
4861
62+ configureFlags = [
63+ "--use-system-pyzstd"
64+ "--use-system-urllib"
65+ ] ;
66+
4967 makeFlags = [
5068 "PYTHONDIR=$(PREFIX)/${ python3Packages . python . sitePackages } "
5169 "PYTHON_INTERPRETER=${ lib . getExe python3Packages . python } "
@@ -54,6 +72,17 @@ python3Packages.buildPythonPackage rec {
5472 "SHELL_INTERPRETER=${ lib . getExe bash } "
5573 ] ;
5674
75+ disabledTests = [
76+ # Broken? Asserts that $STEAM_RUNTIME_LIBRARY_PATH is non-empty
77+ # Fails with AssertionError: '' is not true : Expected two elements in STEAM_RUNTIME_LIBRARY_PATHS
78+ "test_game_drive_empty"
79+ "test_game_drive_libpath_empty"
80+
81+ # Broken? Tests parse_args with no options (./umu_run.py)
82+ # Fails with AssertionError: SystemExit not raised
83+ "test_parse_args_noopts"
84+ ] ;
85+
5786 meta = {
5887 description = "Unified launcher for Windows games on Linux using the Steam Linux Runtime and Tools" ;
5988 changelog = "https://github.com/Open-Wine-Components/umu-launcher/releases/tag/${ version } " ;
0 commit comments