2021-09-18 10:52:07 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, appdirs, dungeon-eos, explorerscript
|
|
|
|
, ndspy, pillow, setuptools, skytemple-rust, tilequant, armips
|
|
|
|
}:
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "skytemple-files";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "1.3.9";
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SkyTemple";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-Z/jbr9o0WKPjkAsfZzxuwAKKdwYV3rLGkUMlMgyC5s0=";
|
2021-06-28 23:13:55 +00:00
|
|
|
fetchSubmodules = true;
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace skytemple_files/patch/arm_patcher.py \
|
|
|
|
--replace "exec_name = os.getenv('SKYTEMPLE_ARMIPS_EXEC', f'{prefix}armips')" "exec_name = \"${armips}/bin/armips\""
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ armips ];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [ appdirs dungeon-eos explorerscript ndspy pillow setuptools skytemple-rust tilequant ];
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
doCheck = false; # requires Pokémon Mystery Dungeon ROM
|
|
|
|
pythonImportsCheck = [ "skytemple_files" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/SkyTemple/skytemple-files";
|
|
|
|
description = "Python library to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ xfix marius851000 ];
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
}
|