gdtoolkit_4: use addBinToPathHook, use writableTmpDirAsHomeHook

This commit is contained in:
Pol Dellaiera
2025-02-04 09:01:38 +01:00
parent b3bba66ff3
commit 2f69f99ff8
+13 -13
View File
@@ -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 = [