1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fetchpatch
5, antlr4-python3-runtime
6, igraph
7, pygments
8}:
9
10buildPythonPackage rec {
11 pname = "explorerscript";
12 version = "0.1.1";
13
14 src = fetchFromGitHub {
15 owner = "SkyTemple";
16 repo = pname;
17 rev = version;
18 sha256 = "1vzyliiyrxx8l9sfbqcyr4xn5swd7znkxy69kn0vb5rban8hm9c1";
19 };
20
21 patches = [
22 # https://github.com/SkyTemple/ExplorerScript/pull/17
23 (fetchpatch {
24 url = "https://github.com/SkyTemple/ExplorerScript/commit/47d8b3d246881d675a82b4049b87ed7d9a0e1b15.patch";
25 sha256 = "0sadw9l2nypl2s8lw526lvbdj4rzqdvrjncx4zxxgyp3x47csb48";
26 })
27 ];
28
29 propagatedBuildInputs = [ antlr4-python3-runtime igraph ];
30 checkInputs = [ pygments ];
31
32 meta = with lib; {
33 homepage = "https://github.com/SkyTemple/explorerscript";
34 description = "A programming language + compiler/decompiler for creating scripts for Pokémon Mystery Dungeon Explorers of Sky";
35 license = licenses.mit;
36 maintainers = with maintainers; [ xfix ];
37 };
38}