Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, fetchFromGitHub, antlr4, antlr4-python3-runtime, igraph, pygments, pytestCheckHook, setuptools,}:
buildPythonPackage rec { pname = "explorerscript"; version = "0.1.5"; pyproject = true;
src = fetchFromGitHub { owner = "SkyTemple"; repo = pname; rev = version; hash = "sha256-dGbzZYEFEWE5bUz+647pPzP4Z/XmrJU82jNT4ZBRNHk="; };
nativeBuildInputs = [ antlr4 setuptools ];
pythonRelaxDeps = [ # antlr output is rebuilt in postPatch step. "antlr4-python3-runtime" # igraph > 0.10.4 was marked as incompatible by upstream # due to a breaking change introduced in 0.10.5. Later versions reverted # this change, and introduced a deprecation warning instead. # # https://github.com/igraph/python-igraph/issues/693 "igraph" ];
postPatch = '' antlr -Dlanguage=Python3 -visitor explorerscript/antlr/{ExplorerScript,SsbScript}.g4 '';
propagatedBuildInputs = [ antlr4-python3-runtime igraph ];
passthru.optional-dependencies.pygments = [ pygments ];
nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pygments;
pythonImportsCheck = [ "explorerscript" ];
meta = with lib; { homepage = "https://github.com/SkyTemple/explorerscript"; description = "Programming language + compiler/decompiler for creating scripts for Pokémon Mystery Dungeon Explorers of Sky"; license = licenses.mit; maintainers = with maintainers; [ marius851000 ]; };}