anchor.diff:      configparser
     ];
   
  +  checkInputs = [ pytest mock pytestcov codecov which glibcLocales ];
  +
  +  checkPhase = ''
  +    LC_ALL="en_US.UTF-8" py.test -v --doctest-modules nipype
  +  '';
  +
     meta = with stdenv.lib; {
       homepage = http://nipy.org/nipype/;
       description = "Neuroimaging in Python: Pipelines and Interfaces";
  
positive.code: , simplejson
  , traits
  , xvfbwrapper
  # other dependencies
  , which
  }:
  
  assert !isPy3k -> configparser != null;
  
negative.code:   # see https://github.com/nipy/nipype/issues/2240
    patches = [ ./prov-version.patch ];
  
    postPatch = ''
      substituteInPlace nipype/interfaces/base/tests/test_core.py \
        --replace "/usr/bin/env bash" "${bash}/bin/bash"
    '';
  
    propagatedBuildInputs = [
      click
      dateutil
  