Commit b5641a8e authored by Mario Rodas's avatar Mario Rodas
Browse files

python310Packages.gpaw: fix pythonImportsCheck usage

parent d4a18327
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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; };