Merge pull request #200020 from marius851000/skytemple1.3.11post1

skytemple: 1.3.10 -> 1.4.7
This commit is contained in:
Fabian Affolter 2023-04-28 18:30:53 +02:00 committed by GitHub
commit a9a7817268
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 168 additions and 51 deletions

View File

@ -2,7 +2,7 @@
, fetchFromGitHub
, gobject-introspection
, gtk3
, gtksourceview3
, gtksourceview4
, webkitgtk
, wrapGAppsHook
, python3Packages
@ -10,19 +10,19 @@
python3Packages.buildPythonApplication rec {
pname = "skytemple";
version = "1.3.10";
version = "1.4.7";
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
hash = "sha256-CyYGTXdQsGpDR/gpqViEQO1xUPHaXTES592nRJixa1o=";
rev = "refs/tags/${version}";
hash = "sha256-NK0yLxs7/pVpl9LCz6ggYsaUDuEAj6edBEPC+4yCxNM=";
};
buildInputs = [
gobject-introspection
gtk3
gtksourceview3
gtksourceview4
# webkitgkt is used for rendering interactive statistics graph which
# can be seen by opening a ROM, entering Pokemon section, selecting
# any Pokemon, and clicking Stats and Moves tab.
@ -52,7 +52,7 @@ python3Packages.buildPythonApplication rec {
skytemple-icons
skytemple-ssb-debugger
tilequant
];
] ++ skytemple-files.optional-dependencies.spritecollab;
doCheck = false; # there are no tests

View File

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, antlr4
, antlr4-python3-runtime
, igraph
@ -11,27 +10,19 @@
buildPythonPackage rec {
pname = "explorerscript";
version = "0.1.1";
version = "0.1.2";
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
sha256 = "1vzyliiyrxx8l9sfbqcyr4xn5swd7znkxy69kn0vb5rban8hm9c1";
sha256 = "sha256-REQYyxB2sb/gG54+OkMw+M4Agg9SWfAyqAhiSNnd3tE=";
};
nativeBuildInputs = [
antlr4
];
patches = [
# https://github.com/SkyTemple/ExplorerScript/pull/17
(fetchpatch {
url = "https://github.com/SkyTemple/ExplorerScript/commit/47d8b3d246881d675a82b4049b87ed7d9a0e1b15.patch";
sha256 = "0sadw9l2nypl2s8lw526lvbdj4rzqdvrjncx4zxxgyp3x47csb48";
})
];
postPatch = ''
sed -i "s/antlr4-python3-runtime.*/antlr4-python3-runtime',/" setup.py
antlr -Dlanguage=Python3 -visitor explorerscript/antlr/{ExplorerScript,SsbScript}.g4

View File

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
}:
#This package is auto-generated. It could totally be possible to generate it from upstream, but seems unecessary
buildPythonPackage rec {
pname = "pmdsky-debug-py";
version = "4.0.0";
# SkyTemple specifically require this version. This is used when patching the binary,
# and risk to be a bit problematic if using the latest version, given it doesnt follow semver.
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
sha256 = "sha256-iRiUZoyWAkFGPvRyQRWvI0210Vk2jPS0PSCCCns5yJI=";
};
prePatch = "cd src";
format = "pyproject";
nativeBuildInputs = [ setuptools ];
meta = with lib; {
description = "Autogenerated and statically check-able pmdsky-debug symbol definitions for Python";
homepage = "https://github.com/SkyTemple/pmdsky-debug-py";
license = licenses.mit;
maintainers = with maintainers; [ marius851000 ];
};
}

View File

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "py-desmume";
version = "0.0.4.post2";
version = "0.0.5.post0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -26,7 +26,7 @@ buildPythonPackage rec {
owner = "SkyTemple";
repo = pname;
rev = version;
hash = "sha256-a819+K/Ovnz53ViDKpUGGjeblWvrAO5ozt/tizdLKCY=";
hash = "sha256-q6E7J7e0yXt+jo1KNqqAw2cG/Us+Tw0dLfTqAKWfAlc=";
fetchSubmodules = true;
};
@ -64,6 +64,6 @@ buildPythonPackage rec {
description = "Python library to interface with DeSmuME, the Nintendo DS emulator";
homepage = "https://github.com/SkyTemple/py-desmume";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ xfix ];
maintainers = with maintainers; [ marius851000 xfix ];
};
}

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "range-typed-integers";
version = "1.0.1";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "theCapypara";
repo = "range-typed-integers";
rev = version;
sha256 = "sha256-4+XdalHq6Q2cBbuYi4x7kmCNQh1MwYf+XlLP9FzzzgE=";
};
format = "pyproject";
nativeBuildInputs = [ setuptools ];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "A package provides integer types that have a specific range of valid values";
homepage = "https://github.com/theCapypara/range-typed-integers";
license = [ licenses.mit ];
maintainers = with maintainers; [ marius851000 ];
};
}

View File

@ -1,16 +1,40 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, appdirs, dungeon-eos, explorerscript
, ndspy, pillow, setuptools, skytemple-rust, tilequant, armips
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, appdirs
, dungeon-eos
, explorerscript
, ndspy
, pillow
, setuptools
, skytemple-rust
, tilequant
, pyyaml
, pmdsky-debug-py
, typing-extensions
, pythonOlder
, # optional dependancies for SpriteCollab
aiohttp
, lru-dict
, graphql-core
, gql
, armips
# tests
, pytestCheckHook
, parameterized
, xmldiff
}:
buildPythonPackage rec {
pname = "skytemple-files";
version = "1.3.9";
version = "1.4.7";
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
hash = "sha256-Z/jbr9o0WKPjkAsfZzxuwAKKdwYV3rLGkUMlMgyC5s0=";
hash = "sha256-SLRZ9ThrH2UWqfr5BbjJKDM/SRkCfMNK70XZT4+Ks7w=";
fetchSubmodules = true;
};
@ -21,9 +45,37 @@ buildPythonPackage rec {
buildInputs = [ armips ];
propagatedBuildInputs = [ appdirs dungeon-eos explorerscript ndspy pillow setuptools skytemple-rust tilequant ];
propagatedBuildInputs = [
appdirs
dungeon-eos
explorerscript
ndspy
pillow
setuptools
skytemple-rust
tilequant
pyyaml
pmdsky-debug-py
] ++ lib.optionals (pythonOlder "3.9") [
typing-extensions
];
passthru.optional-dependencies = {
spritecollab = [
aiohttp
gql
graphql-core
lru-dict
] ++ gql.optional-dependencies.aiohttp;
};
checkInputs = [ pytestCheckHook parameterized xmldiff ] ++ passthru.optional-dependencies.spritecollab;
pytestFlagsArray = "test/";
disabledTestPaths = [
"test/skytemple_files_test/common/spritecollab/sc_online_test.py"
"test/skytemple_files_test/compression_container/atupx/atupx_test.py" # Particularly long test
];
doCheck = false; # requires Pokémon Mystery Dungeon ROM
pythonImportsCheck = [ "skytemple_files" ];
meta = with lib; {

View File

@ -5,27 +5,30 @@
, libiconv
, Foundation
, rustPlatform
, setuptools-rust }:
, setuptools-rust
, range-typed-integers
}:
buildPythonPackage rec {
pname = "skytemple-rust";
version = "1.3.7";
version = "1.4.0.post0";
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
hash = "sha256-rC7KA79va8gZpMKJQ7s3xYdbopNqmWdRYDCbaWaxsR0=";
hash = "sha256-aw57B15sDbMcdNPD8MW+O7AdqSSqjlOcuXNSm10GdPM=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-lXPCxRbaqUC5EfyeBPtJDuGADYOA+DWMaOZRwXppP8E=";
hash = "sha256-SvHrMr5k4afVdU5nvg+bcoHVmzHYyoOYqv7nOSVxRCE=";
};
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ];
nativeBuildInputs = [ setuptools-rust ] ++ (with rustPlatform; [ cargoSetupHook rust.cargo rust.rustc ]);
propagatedBuildInputs = [ range-typed-integers ];
GETTEXT_SYSTEM = true;

View File

@ -1,20 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub, gobject-introspection, gtk3, gtksourceview3
, wrapGAppsHook, nest-asyncio, pycairo, py-desmume, pygtkspellcheck, setuptools
, skytemple-files, skytemple-icons
{ lib
, buildPythonPackage
, fetchFromGitHub
, gobject-introspection
, gtk3
, gtksourceview4
, wrapGAppsHook
, nest-asyncio
, pycairo
, py-desmume
, pygtkspellcheck
, setuptools
, skytemple-files
, skytemple-icons
}:
buildPythonPackage rec {
pname = "skytemple-ssb-debugger";
version = "1.3.8.post2";
version = "1.4.4";
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
hash = "sha256-dd0qsSNBwxuSopjz2PLqEFddZpvMgeJIjBXY5P6OAow=";
hash = "sha256-/LBz0PCQI3QOAmOZk6Jynqi/+NN0w8gbY/S3YckRZ68=";
};
buildInputs = [ gobject-introspection gtk3 gtksourceview3 ];
buildInputs = [ gobject-introspection gtk3 gtksourceview4 ];
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
propagatedBuildInputs = [
nest-asyncio

View File

@ -9,17 +9,9 @@
, sortedcollections
}:
let
aikku93-tilequant = fetchFromGitHub {
owner = "SkyTemple";
repo = "aikku93-tilequant";
rev = "6604e0906edff384b6c8d4cde03e6601731f66fd";
sha256 = "0w19h3n2i0xriqsy0b0rifjgbv4hqd7gl78fw0cappkrdykij5r1";
};
in
buildPythonPackage rec {
pname = "tilequant";
version = "0.4.0.post0";
version = "0.4.1.post0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -28,13 +20,10 @@ buildPythonPackage rec {
owner = "SkyTemple";
repo = pname;
rev = version;
sha256 = "189af203iay3inj1bbgm3hh1fshn879bcm28ypbvfp27fy7j5b25";
hash = "sha256-7vU/AYnX7deOH3PjrseRIj9BUJMWzDlwR3UcMpBRyfc=";
fetchSubmodules = true;
};
postPatch = ''
cp -R --no-preserve=mode ${aikku93-tilequant} __aikku93_tilequant
'';
buildInputs = [
gitpython
];
@ -56,6 +45,6 @@ buildPythonPackage rec {
description = "Tool for quantizing image colors using tile-based palette restrictions";
homepage = "https://github.com/SkyTemple/tilequant";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ xfix ];
maintainers = with maintainers; [ marius851000 xfix ];
};
}

View File

@ -7665,6 +7665,8 @@ self: super: with self; {
pmw = callPackage ../development/python-modules/pmw { };
pmdsky-debug-py = callPackage ../development/python-modules/pmdsky-debug-py { };
pnglatex = callPackage ../development/python-modules/pnglatex { };
pocket = callPackage ../development/python-modules/pocket { };
@ -10122,6 +10124,8 @@ self: super: with self; {
random2 = callPackage ../development/python-modules/random2 { };
range-typed-integers = callPackage ../development/python-modules/range-typed-integers { };
rangehttpserver = callPackage ../development/python-modules/rangehttpserver { };
rapidfuzz = callPackage ../development/python-modules/rapidfuzz { };