Skip to content

Commit

Permalink
python3Packages.skytemple-files: 1.7.0 -> 1.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
marius851000 authored and bobby285271 committed Oct 14, 2024
1 parent 8ecacff commit 7eb38da
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions pkgs/development/python-modules/skytemple-files/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
appdirs,
dungeon-eos,
explorerscript,
Expand All @@ -29,7 +28,7 @@

buildPythonPackage rec {
pname = "skytemple-files";
version = "1.7.0";
version = "1.8.3";
pyproject = true;

disabled = pythonOlder "3.9";
Expand All @@ -38,19 +37,11 @@ buildPythonPackage rec {
owner = "SkyTemple";
repo = "skytemple-files";
rev = version;
hash = "sha256-G2AAQ+eRnsMTWrAF0SNmxUmOoHTSMCuSy1kUZbFy8y0=";
hash = "sha256-4ENuYq074j/VdzLyrGVCGaZhoStwlgJWTqGbrt20A3Q=";
# Most patches are in submodules
fetchSubmodules = true;
};

patches = [
(fetchpatch2 {
name = "fix-tests.patch";
url = "https://github.com/SkyTemple/skytemple-files/commit/854e5514e6c63ba082618d14643e3a4b30a6c2b2.patch";
hash = "sha256-oTV2EQQ2OPgu2pYB2fLd4jODfybnV29YNLxzDs2v6Cg=";
})
];

postPatch = ''
substituteInPlace skytemple_files/patch/arm_patcher.py skytemple_files/data/data_cd/armips_importer.py \
--replace-fail "exec_name = os.getenv(\"SKYTEMPLE_ARMIPS_EXEC\", f\"{prefix}armips\")" "exec_name = \"${armips}/bin/armips\""
Expand Down Expand Up @@ -86,10 +77,13 @@ buildPythonPackage rec {
parameterized
xmldiff
] ++ optional-dependencies.spritecollab;
pytestFlagsArray = [ "test/" ];

preCheck = "pushd test";
postCheck = "popd";

disabledTestPaths = [
"test/skytemple_files_test/common/spritecollab/sc_online_test.py"
"test/skytemple_files_test/compression_container/atupx/atupx_test.py" # Particularly long test
"skytemple_files_test/common/spritecollab/sc_online_test.py"
"skytemple_files_test/compression_container/atupx/atupx_test.py" # Particularly long test
];

pythonImportsCheck = [ "skytemple_files" ];
Expand Down

0 comments on commit 7eb38da

Please sign in to comment.