Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, fetchFromGitHub
3, gobject-introspection
4, gtk3
5, gtksourceview4
6, webkitgtk
7, wrapGAppsHook
8, python3Packages
9}:
10
11python3Packages.buildPythonApplication rec {
12 pname = "skytemple";
13 version = "1.4.7";
14
15 src = fetchFromGitHub {
16 owner = "SkyTemple";
17 repo = pname;
18 rev = "refs/tags/${version}";
19 hash = "sha256-NK0yLxs7/pVpl9LCz6ggYsaUDuEAj6edBEPC+4yCxNM=";
20 };
21
22 buildInputs = [
23 gobject-introspection
24 gtk3
25 gtksourceview4
26 # webkitgkt is used for rendering interactive statistics graph which
27 # can be seen by opening a ROM, entering Pokemon section, selecting
28 # any Pokemon, and clicking Stats and Moves tab.
29 webkitgtk
30 ];
31
32 nativeBuildInputs = [
33 gobject-introspection
34 wrapGAppsHook
35 ];
36
37 propagatedBuildInputs = with python3Packages; [
38 cairosvg
39 natsort
40 ndspy
41 packaging
42 pycairo
43 pygal
44 psutil
45 gbulb
46 pypresence
47 sentry-sdk
48 setuptools
49 skytemple-dtef
50 skytemple-eventserver
51 skytemple-files
52 skytemple-icons
53 skytemple-ssb-debugger
54 tilequant
55 ] ++ skytemple-files.optional-dependencies.spritecollab;
56
57 doCheck = false; # there are no tests
58
59 meta = with lib; {
60 homepage = "https://github.com/SkyTemple/skytemple";
61 description = "ROM hacking tool for Pokémon Mystery Dungeon Explorers of Sky";
62 license = licenses.gpl3Plus;
63 maintainers = with maintainers; [ xfix marius851000 ];
64 };
65}