gemmi: use addBinToPathHook

This commit is contained in:
Pol Dellaiera
2025-02-04 09:01:38 +01:00
parent 2f69f99ff8
commit f0ad956733
+11 -9
View File
@@ -5,6 +5,7 @@
cmake,
zlib,
enablePython ? true,
addBinToPathHook,
python3Packages,
testers,
}:
@@ -44,15 +45,16 @@ stdenv.mkDerivation (finalAttrs: {
doInstallCheck = enablePython;
nativeInstallCheckInputs = with python3Packages; [
# biopython
numpy
pytestCheckHook
];
preInstallCheck = ''
export PATH=$out/bin:$PATH
'';
nativeInstallCheckInputs =
with python3Packages;
[
# biopython
numpy
pytestCheckHook
]
++ [
addBinToPathHook
];
pytestFlagsArray = [ "../tests" ];