17 # optional dependancies for SpriteCollab
29 buildPythonPackage rec {
30 pname = "skytemple-files";
34 disabled = pythonOlder "3.9";
36 src = fetchFromGitHub {
38 repo = "skytemple-files";
40 hash = "sha256-4ENuYq074j/VdzLyrGVCGaZhoStwlgJWTqGbrt20A3Q=";
41 # Most patches are in submodules
42 fetchSubmodules = true;
46 substituteInPlace skytemple_files/patch/arm_patcher.py skytemple_files/data/data_cd/armips_importer.py \
47 --replace-fail "exec_name = os.getenv(\"SKYTEMPLE_ARMIPS_EXEC\", f\"{prefix}armips\")" "exec_name = \"${armips}/bin/armips\""
50 build-system = [ setuptools ];
52 buildInputs = [ armips ];
66 optional-dependencies = {
72 ] ++ gql.optional-dependencies.aiohttp;
79 ] ++ optional-dependencies.spritecollab;
81 preCheck = "pushd test";
85 "skytemple_files_test/common/spritecollab/sc_online_test.py"
86 "skytemple_files_test/compression_container/atupx/atupx_test.py" # Particularly long test
89 pythonImportsCheck = [ "skytemple_files" ];
92 homepage = "https://github.com/SkyTemple/skytemple-files";
93 description = "Python library to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky";
94 mainProgram = "skytemple_export_maps";
95 license = licenses.gpl3Plus;
96 maintainers = with maintainers; [ marius851000 ];
97 broken = stdenv.hostPlatform.isDarwin; # pyobjc is missing