anchor.diff:      openpyxl
       tables
       xlwt
  -  ] ++ optional isDarwin darwin.locale; # provides the locale command
  +  ];
   
     # For OSX, we need to add a dependency on libcxx, which provides
     # `complex.h` and other libraries that pandas depends on to build.
  
positive.code:     homepage = "http://pandas.pydata.org/";
      description = "Python Data Analysis Library";
      license = stdenv.lib.licenses.bsd3;
      maintainers = with stdenv.lib.maintainers; [ raskin fridh ];
      platforms = stdenv.lib.platforms.unix;
    };
  }
  
negative.code:     substituteInPlace setup.py \
        --replace "['pandas/src/klib', 'pandas/src']" \
                  "['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
    '';
  
    checkPhase = ''
      runHook preCheck
    ''
    # TODO: Get locale and clipboard support working on darwin.
    #       Until then we disable the tests.
    + optionalString isDarwin ''
      # Fake the impure dependencies pbpaste and pbcopy
      echo "#!/bin/sh" > pbcopy
      echo "#!/bin/sh" > pbpaste
      chmod a+x pbcopy pbpaste
      export PATH=$(pwd):$PATH
    '' + ''
      py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network \
        ${if isDarwin then "-k 'not test_locale and not test_clipboard'" else ""}
      runHook postCheck
    '';
  
  