python310Packages.gpaw: fix pythonImportsCheck usage
This commit is contained in:
parent
d4a1832792
commit
b5641a8e7c
|
@ -14,6 +14,7 @@
|
|||
, numpy
|
||||
, scipy
|
||||
, pyyaml
|
||||
, inetutils
|
||||
}:
|
||||
|
||||
assert lib.asserts.assertMsg (!blas.isILP64)
|
||||
|
@ -82,7 +83,10 @@ in buildPythonPackage rec {
|
|||
hash = "sha256-Kgf8yuGua7mcGP+jVVmbE8JCsbrfzewRTRt3ihq9YX4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ which ];
|
||||
# `inetutils` is required because importing `gpaw`, as part of
|
||||
# pythonImportsCheck, tries to execute its binary, which in turn tries to
|
||||
# execute `rsh` as a side-effect.
|
||||
nativeBuildInputs = [ which inetutils ];
|
||||
|
||||
buildInputs = [ blas scalapack libxc libvdwxc ];
|
||||
|
||||
|
@ -110,7 +114,7 @@ in buildPythonPackage rec {
|
|||
'';
|
||||
|
||||
doCheck = false; # Requires MPI runtime to work in the sandbox
|
||||
pythonImportsCheckHook = [ "gpaw" ];
|
||||
pythonImportsCheck = [ "gpaw" ];
|
||||
|
||||
passthru = { inherit mpi; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue