Skip to content

Commit 5551677

Browse files
authored
skytemple: 1.6.5 -> 1.8.3 (#343467)
2 parents 0075cbb + 5d125ad commit 5551677

File tree

8 files changed

+187
-306
lines changed

8 files changed

+187
-306
lines changed

pkgs/applications/misc/skytemple/default.nix

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
python3Packages.buildPythonApplication rec {
1212
pname = "skytemple";
13-
version = "1.6.5";
13+
version = "1.8.3";
1414
pyproject = true;
1515

1616
src = fetchFromGitHub {
1717
owner = "SkyTemple";
1818
repo = "skytemple";
1919
rev = "refs/tags/${version}";
20-
hash = "sha256-yfXu1sboKi8STPiX5FUD9q+1U9GfhOyEKDRvU9rgdfI=";
20+
hash = "sha256-RFLxDV/L6Qbz14KqIEcMX/EnirNUrHL0MW8v5Z8ByK0=";
2121
};
2222

2323
build-system = with python3Packages; [ setuptools ];
@@ -36,11 +36,6 @@ python3Packages.buildPythonApplication rec {
3636
wrapGAppsHook3
3737
];
3838

39-
pythonRelaxDeps = [
40-
"skytemple-files"
41-
"skytemple-ssb-debugger"
42-
];
43-
4439
dependencies = with python3Packages; [
4540
cairosvg
4641
natsort
@@ -49,7 +44,6 @@ python3Packages.buildPythonApplication rec {
4944
pycairo
5045
pygal
5146
psutil
52-
gbulb
5347
pypresence
5448
sentry-sdk
5549
setuptools

pkgs/development/python-modules/explorerscript/default.nix

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,56 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5-
antlr4,
6-
antlr4-python3-runtime,
75
igraph,
86
pygments,
7+
scikit-build-core,
8+
pybind11,
9+
ninja,
10+
ruff,
11+
cmake,
912
pytestCheckHook,
1013
setuptools,
1114
}:
1215

1316
buildPythonPackage rec {
1417
pname = "explorerscript";
15-
version = "0.1.5";
18+
version = "0.2.1.post2";
1619
pyproject = true;
1720

1821
src = fetchFromGitHub {
1922
owner = "SkyTemple";
2023
repo = pname;
2124
rev = version;
22-
hash = "sha256-dGbzZYEFEWE5bUz+647pPzP4Z/XmrJU82jNT4ZBRNHk=";
25+
hash = "sha256-cKEceWr7XmZbuomPOmjQ32ptAjz3LZDQBWAgZEFadDY=";
26+
# Include a pinned antlr4 fork used as a C++ library
27+
fetchSubmodules = true;
2328
};
2429

2530
nativeBuildInputs = [
26-
antlr4
2731
setuptools
32+
scikit-build-core
33+
ninja
34+
cmake
35+
ruff
2836
];
2937

30-
pythonRelaxDeps = [
31-
# antlr output is rebuilt in postPatch step.
32-
"antlr4-python3-runtime"
33-
# igraph > 0.10.4 was marked as incompatible by upstream
34-
# due to a breaking change introduced in 0.10.5. Later versions reverted
35-
# this change, and introduced a deprecation warning instead.
36-
#
37-
# https://github.com/igraph/python-igraph/issues/693
38-
"igraph"
39-
];
38+
# The source include some auto-generated ANTLR code that could be recompiled, but trying that resulted in a crash while decompiling unionall.ssb.
39+
# We thus do not rebuild them.
4040

4141
postPatch = ''
42-
antlr -Dlanguage=Python3 -visitor explorerscript/antlr/{ExplorerScript,SsbScript}.g4
42+
substituteInPlace Makefile \
43+
--replace-fail ./generate_parser_bindings.py "python3 ./generate_parser_bindings.py"
44+
45+
# Doesn’t detect that package for some reason
46+
substituteInPlace pyproject.toml \
47+
--replace-fail "\"scikit-build-core<=0.9.8\"," ""
4348
'';
4449

50+
dontUseCmakeConfigure = true;
51+
4552
propagatedBuildInputs = [
46-
antlr4-python3-runtime
4753
igraph
54+
pybind11
4855
];
4956

5057
optional-dependencies.pygments = [ pygments ];

pkgs/development/python-modules/pmdsky-debug-py/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#This package is auto-generated. It could totally be possible to generate it from upstream, but seems unecessary
99
buildPythonPackage rec {
1010
pname = "pmdsky-debug-py";
11-
version = "8.0.4";
11+
version = "10.0.21";
1212
pyproject = true;
1313
# SkyTemple specifically require this version. This is used when patching the binary,
1414
# and risk to be a bit problematic if using the latest version, given it doesn’t follow semver.
@@ -17,7 +17,7 @@ buildPythonPackage rec {
1717
owner = "SkyTemple";
1818
repo = pname;
1919
rev = version;
20-
sha256 = "sha256-D81vXhYGxwvy26PvicniCLiS58LmrSP9ppzXKRzQSJc=";
20+
sha256 = "sha256-uhLmEViiJ5+2Aw9MJP8GL7nhk8lMPcRZRB8WTDFXe+s=";
2121
};
2222

2323
prePatch = "cd src";

pkgs/development/python-modules/skytemple-files/default.nix

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
lib,
44
buildPythonPackage,
55
fetchFromGitHub,
6-
fetchpatch2,
76
appdirs,
87
dungeon-eos,
98
explorerscript,
@@ -29,7 +28,7 @@
2928

3029
buildPythonPackage rec {
3130
pname = "skytemple-files";
32-
version = "1.7.0";
31+
version = "1.8.3";
3332
pyproject = true;
3433

3534
disabled = pythonOlder "3.9";
@@ -38,19 +37,11 @@ buildPythonPackage rec {
3837
owner = "SkyTemple";
3938
repo = "skytemple-files";
4039
rev = version;
41-
hash = "sha256-G2AAQ+eRnsMTWrAF0SNmxUmOoHTSMCuSy1kUZbFy8y0=";
40+
hash = "sha256-4ENuYq074j/VdzLyrGVCGaZhoStwlgJWTqGbrt20A3Q=";
4241
# Most patches are in submodules
4342
fetchSubmodules = true;
4443
};
4544

46-
patches = [
47-
(fetchpatch2 {
48-
name = "fix-tests.patch";
49-
url = "https://github.com/SkyTemple/skytemple-files/commit/854e5514e6c63ba082618d14643e3a4b30a6c2b2.patch";
50-
hash = "sha256-oTV2EQQ2OPgu2pYB2fLd4jODfybnV29YNLxzDs2v6Cg=";
51-
})
52-
];
53-
5445
postPatch = ''
5546
substituteInPlace skytemple_files/patch/arm_patcher.py skytemple_files/data/data_cd/armips_importer.py \
5647
--replace-fail "exec_name = os.getenv(\"SKYTEMPLE_ARMIPS_EXEC\", f\"{prefix}armips\")" "exec_name = \"${armips}/bin/armips\""
@@ -86,10 +77,13 @@ buildPythonPackage rec {
8677
parameterized
8778
xmldiff
8879
] ++ optional-dependencies.spritecollab;
89-
pytestFlagsArray = [ "test/" ];
80+
81+
preCheck = "pushd test";
82+
postCheck = "popd";
83+
9084
disabledTestPaths = [
91-
"test/skytemple_files_test/common/spritecollab/sc_online_test.py"
92-
"test/skytemple_files_test/compression_container/atupx/atupx_test.py" # Particularly long test
85+
"skytemple_files_test/common/spritecollab/sc_online_test.py"
86+
"skytemple_files_test/compression_container/atupx/atupx_test.py" # Particularly long test
9387
];
9488

9589
pythonImportsCheck = [ "skytemple_files" ];

pkgs/development/python-modules/skytemple-rust/default.nix

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
stdenv,
44
buildPythonPackage,
55
cargo,
6-
fetchPypi,
6+
fetchFromGitHub,
77
libiconv,
88
Foundation,
99
rustPlatform,
@@ -14,18 +14,20 @@
1414

1515
buildPythonPackage rec {
1616
pname = "skytemple-rust";
17-
version = "1.6.5";
17+
version = "1.8.2";
1818
pyproject = true;
1919

20-
src = fetchPypi {
21-
inherit pname version;
22-
hash = "sha256-bf+umrb5EIoCD2kheVpf9IwsW4Sf2hR7XOEzscYtLA8=";
20+
src = fetchFromGitHub {
21+
owner = "SkyTemple";
22+
repo = "skytemple-rust";
23+
rev = version;
24+
hash = "sha256-0hIwFJn/cwtKHKoD+upeorC52YnDlej3TrWf3PmAQAQ=";
2325
};
2426

2527
cargoDeps = rustPlatform.fetchCargoTarball {
2628
inherit src;
2729
name = "${pname}-${version}";
28-
hash = "sha256-0a57RmZPztcIeRs7GNYe18JO+LlWoeNWG3nD9cG0XIU=";
30+
hash = "sha256-Gdypi9DJAXQgNaRCLEt4LTqUhBJC8plH0YhgNOIOGvA=";
2931
};
3032

3133
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [

pkgs/development/python-modules/skytemple-ssb-debugger/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
buildPythonPackage rec {
2626
pname = "skytemple-ssb-debugger";
27-
version = "1.7.0";
27+
version = "1.8.2";
2828
pyproject = true;
2929

3030
src = fetchFromGitHub {
3131
owner = "SkyTemple";
3232
repo = "skytemple-ssb-debugger";
3333
rev = version;
34-
hash = "sha256-S38Nw7FntacEdwdGu2d/zUKOsGostVy9+U2KPxlvI5Q=";
34+
hash = "sha256-HmJOjHX2/P284DSIdKuSz3++Qr1fKVGRQmA/+cMrcYw=";
3535
};
3636

3737
build-system = [ setuptools ];

0 commit comments

Comments
 (0)