diff --git a/pkgs/by-name/gd/gdtoolkit_4/package.nix b/pkgs/by-name/gd/gdtoolkit_4/package.nix index 301f9013409e..3c51104343c8 100644 --- a/pkgs/by-name/gd/gdtoolkit_4/package.nix +++ b/pkgs/by-name/gd/gdtoolkit_4/package.nix @@ -2,6 +2,8 @@ lib, python3, fetchFromGitHub, + addBinToPathHook, + writableTmpDirAsHomeHook, }: let @@ -30,7 +32,7 @@ python.pkgs.buildPythonApplication rec { src = fetchFromGitHub { owner = "Scony"; repo = "godot-gdscript-toolkit"; - rev = version; + tag = version; hash = "sha256-XK6s/WnbTzjCAtV8dbRPLe5olpKUglPLQdttRRMvX70="; }; @@ -45,18 +47,16 @@ python.pkgs.buildPythonApplication rec { doCheck = true; - nativeCheckInputs = with python.pkgs; [ - pytestCheckHook - hypothesis - ]; - - preCheck = '' - # The tests want to run the installed executables - export PATH=$out/bin:$PATH - - # gdtoolkit tries to write cache variables to $HOME/.cache - export HOME=$TMP - ''; + nativeCheckInputs = + with python.pkgs; + [ + pytestCheckHook + hypothesis + ] + ++ [ + addBinToPathHook + writableTmpDirAsHomeHook + ]; # The tests are not working on NixOS disabledTestPaths = [