17 , # optional dependancies for SpriteCollab
29 buildPythonPackage rec {
30 pname = "skytemple-files";
33 src = fetchFromGitHub {
37 hash = "sha256-PVHI3SuXXH+XpSaBhtSUT5I6wYK3WmwW67nJmPLKdg4=";
38 fetchSubmodules = true;
42 substituteInPlace skytemple_files/patch/arm_patcher.py skytemple_files/data/data_cd/armips_importer.py \
43 --replace "exec_name = os.getenv(\"SKYTEMPLE_ARMIPS_EXEC\", f\"{prefix}armips\")" "exec_name = \"${armips}/bin/armips\""
46 buildInputs = [ armips ];
48 propagatedBuildInputs = [
59 ] ++ lib.optionals (pythonOlder "3.9") [
63 passthru.optional-dependencies = {
69 ] ++ gql.optional-dependencies.aiohttp;
72 checkInputs = [ pytestCheckHook parameterized xmldiff ] ++ passthru.optional-dependencies.spritecollab;
73 pytestFlagsArray = [ "test/" ];
75 "test/skytemple_files_test/common/spritecollab/sc_online_test.py"
76 "test/skytemple_files_test/compression_container/atupx/atupx_test.py" # Particularly long test
79 pythonImportsCheck = [ "skytemple_files" ];
82 homepage = "https://github.com/SkyTemple/skytemple-files";
83 description = "Python library to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky";
84 license = licenses.gpl3Plus;
85 maintainers = with maintainers; [ xfix marius851000 ];
86 broken = stdenv.isDarwin; # pyobjc is missing