about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorStanisław Pitucha <git@viraptor.info>2022-10-09 16:13:42 +1100
committerGitHub <noreply@github.com>2022-10-09 16:13:42 +1100
commit49a2d51ba2901b689fc8270a574b723594fd84ed (patch)
treee8192453c22ef85b550d57f16a796922b7c0f495 /pkgs
parentbd97c7ab87994a268a3096af14c53a16efdd8eea (diff)
parent3a3d66f9ff213024a720a72b3639bd62ec63a52a (diff)
Merge pull request #192156 from viraptor/devito-fix-darwin
python310Packages.devito: fix darwin build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/devito/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/devito/default.nix b/pkgs/development/python-modules/devito/default.nix
index 2aa669e44a331..2a47f58c6a8e0 100644
--- a/pkgs/development/python-modules/devito/default.nix
+++ b/pkgs/development/python-modules/devito/default.nix
@@ -18,6 +18,8 @@
 , pytestCheckHook
 , matplotlib
 , pytest-xdist
+, gcc
+, llvmPackages
 }:
 
 buildPythonPackage rec {
@@ -46,7 +48,7 @@ buildPythonPackage rec {
         -i requirements.txt
   '';
 
-  checkInputs = [ pytestCheckHook pytest-xdist matplotlib ];
+  checkInputs = [ pytestCheckHook pytest-xdist matplotlib gcc ];
 
   # I've had to disable the following tests since they fail while using nix-build, but they do pass
   # outside the build. They mostly related to the usage of MPI in a sandboxed environment.
@@ -88,12 +90,11 @@ buildPythonPackage rec {
     pyrevolve
     scipy
     sympy
-  ];
+  ] ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ];
 
   pythonImportsCheck = [ "devito" ];
 
   meta = with lib; {
-    broken = stdenv.isDarwin;
     homepage = "https://www.devitoproject.org/";
     description = "Code generation framework for automated finite difference computation";
     license = licenses.mit;