anchor.diff:      six
     ];
   
  -  # Set HOME so that matplotlib doesn't try to use
  -  # /homeless-shelter/.config/matplotlib, otherwise some of the tests fail for
  -  # having an unexpected warning on stderr produced by matplotlib.
  -  # Ignore impure tests.
  -  checkPhase = ''
  -    export HOME=$(mktemp -d)
  -    pytest tests --ignore tests/test_timeouts.py
  -  '';
  +  pytestFlagsArray = [
  +    "tests"
  +    # These are the main tests but they're fragile so skip them. They error
  +    # whenever matplotlib outputs any unexpected warnings, e.g. deprecation
  +    # warnings.
  +    "--ignore=tests/test_unit_tests_in_notebooks.py"
  +    # Impure
  +    "--ignore=tests/test_timeouts.py"
  +  ];
   
     # Some of the tests use localhost networking.
     __darwinAllowLocalNetworking = true;
  
positive.code: , ipykernel
  , jupyter_client
  , nbformat
  , pytest
  , six
  , glibcLocales
  
negative.code:   };
  
    checkInputs = [
      pytestCheckHook
      matplotlib
      sympy
      pytestcov
  