python3Packages.skytemple-files: 1.5.5 -> 1.6.1
This commit is contained in:
parent
d10bec7f77
commit
22bdba1950
@ -2,7 +2,6 @@
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, appdirs
|
||||
, dungeon-eos
|
||||
, explorerscript
|
||||
@ -13,6 +12,8 @@
|
||||
, tilequant
|
||||
, pyyaml
|
||||
, pmdsky-debug-py
|
||||
, range-typed-integers
|
||||
, importlib-resources
|
||||
, typing-extensions
|
||||
, pythonOlder
|
||||
, # optional dependancies for SpriteCollab
|
||||
@ -29,30 +30,16 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "skytemple-files";
|
||||
version = "1.5.5";
|
||||
version = "1.6.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SkyTemple";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-PVHI3SuXXH+XpSaBhtSUT5I6wYK3WmwW67nJmPLKdg4=";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-P0VME1keazqcyb0JuQ4iXPyJH7/gTmYE7uASpjvhqUo=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Necessary for skytemple-files to work with Pillow 10.1.0.
|
||||
# https://github.com/SkyTemple/skytemple-files/issues/449
|
||||
(fetchpatch {
|
||||
url = "https://github.com/SkyTemple/skytemple-files/commit/5dc6477d5411b43b80ba79cdaf3521d75d924233.patch";
|
||||
hash = "sha256-0511IRjOcQikhnbu3FkXn92mLAkO+kV9J94Z3f7EBcU=";
|
||||
includes = ["skytemple_files/graphics/kao/_model.py"];
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://github.com/SkyTemple/skytemple-files/commit/9548f7cf3b1d834555b41497cfc0bddab10fd3f6.patch";
|
||||
hash = "sha256-a3GeR5IxXRIKY7I6rhKbOcQnoKxtH7Xf3Wx/BRFQHSc=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace skytemple_files/patch/arm_patcher.py skytemple_files/data/data_cd/armips_importer.py \
|
||||
--replace "exec_name = os.getenv(\"SKYTEMPLE_ARMIPS_EXEC\", f\"{prefix}armips\")" "exec_name = \"${armips}/bin/armips\""
|
||||
@ -71,7 +58,9 @@ buildPythonPackage rec {
|
||||
tilequant
|
||||
pyyaml
|
||||
pmdsky-debug-py
|
||||
range-typed-integers
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-resources
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user