diff --git a/pkgs/by-name/ge/gemmi/package.nix b/pkgs/by-name/ge/gemmi/package.nix index 4082147ec513..17e4cebd94eb 100644 --- a/pkgs/by-name/ge/gemmi/package.nix +++ b/pkgs/by-name/ge/gemmi/package.nix @@ -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" ];