27 buildPythonPackage rec {
30 format = "setuptools";
32 disabled = pythonOlder "3.7";
34 src = fetchFromGitHub {
35 owner = "devitocodes";
37 rev = "refs/tags/v${version}";
38 hash = "sha256-g9rRJF1JrZ6+s3tj4RZHuGOjt5LJjtK9I5CJmq4CJL4=";
48 pythonRelaxDeps = true;
54 propagatedBuildInputs = [
68 ] ++ lib.optionals stdenv.cc.isClang [
79 pytestFlagsArray = [ "-x" ];
81 # I've had to disable the following tests since they fail while using nix-build, but they do pass
82 # outside the build. They mostly related to the usage of MPI in a sandboxed environment.
84 "test_assign_parallel"
85 "test_cache_blocking_structure_distributed"
86 "test_codegen_quality0"
87 "test_coefficients_w_xreplace"
89 "test_docstrings[finite_differences.coefficients]"
93 "test_init_omp_env_w_mpi"
94 "test_loop_bounds_forward"
97 "test_index_derivative"
98 "test_new_distributor"
101 "test_subdomainset_mpi"
104 disabledTestPaths = [
105 "tests/test_pickle.py"
106 "tests/test_benchmark.py"
108 "tests/test_autotuner.py"
111 "tests/test_gradient.py"
114 pythonImportsCheck = [
119 description = "Code generation framework for automated finite difference computation";
120 homepage = "https://www.devitoproject.org/";
121 changelog = "https://github.com/devitocodes/devito/releases/tag/v${version}";
122 license = licenses.mit;
123 maintainers = with maintainers; [ atila ];