Commit 1fcce504 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.dscribe: fix matplotlib tests on darwin

parent 34b4be97
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -53,9 +53,14 @@ buildPythonPackage rec {
    "dscribe.ext"
  ];

  preCheck =
    # Prevents python from loading dscribe from the current working directory instead of using $out
  preCheck = ''
    ''
      rm -rf dscribe
    ''
    # Prevents 'Fatal Python error: Aborted' on darwin during checkPhase
    + lib.optionalString stdenv.hostPlatform.isDarwin ''
      export MPLBACKEND="Agg"
    '';

  nativeCheckInputs = [
@@ -72,11 +77,6 @@ buildPythonPackage rec {
      [
        # AssertionError on a numerical test
        "test_cell_list"
      ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    # Fatal Python error: Aborted
    # matplotlib/backend_bases.py", line 2654 in create_with_canvas
    "test_examples"
      ];

  # Broken due to use of missing _get_constraints attr in ase >= 3.26.0