gdtoolkit_4: use addBinToPathHook, use writableTmpDirAsHomeHook
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user