anchor.diff:      cmake
     ];
   
  +  # we never actually explicitly call the install command so this is the only way
  +  # to inject these options to it - however, openmp-library doesn't appear to have
  +  # any effect, so we have to inject it into NIX_LDFLAGS manually below
  +  postPatch = stdenv.lib.optionalString stdenv.cc.isClang ''
  +    cat >> setup.cfg <<EOF
  +
  +    [install]
  +    openmp-include-dir=${llvmPackages.openmp}/include
  +    openmp-library=${llvmPackages.openmp}/lib/libomp.dylib
  +
  +    EOF
  +  '';
  +
     propagatedBuildInputs = [
       numpy
       scipy
  
positive.code: 
    postConfigure = ''
      export HOME=$(mktemp -d)
    '';
  
    # The pypi package doesn't distribute the tests from the GitHub
  
negative.code: { stdenv
  , buildPythonPackage
  , fetchPypi
  , cmake
  , numpy
  , scipy
  , scikitlearn
  , llvmPackages ? null
  }:
  
  buildPythonPackage rec {
  