'Returns ``False`` if some dependencies are not met and the test should be
skipped otherwise returns ``True``.'

def _process_dependencies(self, deps):

    executables = deps.get('exe', None)
    moduledeps = deps.get('modules', None)
    viewers = deps.get('disable_viewers', None)
    pyglet = deps.get('pyglet', None)
    if (executables is not None):
        for ex in executables:
            found = find_executable(ex)
            if (found is None):
                return ('Could    not    find    %s' % ex)
    if (moduledeps is not None):
        for extmod in moduledeps:
            if (extmod == 'matplotlib'):
                matplotlib = import_module('matplotlib', __import__kwargs={'fromlist': ['pyplot', 'cm', 'collections']}, min_module_version='1.0.0', catch=(RuntimeError,))
                if (matplotlib is not None):
                    pass
                else:
                    return 'Could    not    import    matplotlib'
            else:
                mod = import_module(extmod)
                if (mod is not None):
                    version = 'unknown'
                    if hasattr(mod, '__version__'):
                        version = mod.__version__
                else:
                    return ('Could    not    import    %s' % mod)
    if (viewers is not None):
        import tempfile
        tempdir = tempfile.mkdtemp()
        os.environ['PATH'] = ('%s:%s' % (tempdir, os.environ['PATH']))
        if PY3:
            vw = '#!/usr/bin/env    python3\nimport    sys\nif    len(sys.argv)    <=    1:\n                exit("wrong    number    of    args")\n'
        else:
            vw = '#!/usr/bin/env    python\nimport    sys\nif    len(sys.argv)    <=    1:\n                exit("wrong    number    of    args")\n'
        for viewer in viewers:
            with open(os.path.join(tempdir, viewer), 'w') as fh:
                fh.write(vw)
            os.chmod(os.path.join(tempdir, viewer), ((stat.S_IREAD | stat.S_IWRITE) | stat.S_IXUSR))
    if pyglet:
        import pyglet
        class DummyWindow(object, ):
            def __init__(self, *args, **kwargs):
                self.has_exit = True
                self.width = 600
                self.height = 400
            def set_vsync(self, x):
                pass
            def switch_to(self):
                pass
            def push_handlers(self, x):
                pass
            def close(self):
                pass
        pyglet.window.Window = DummyWindow
    return True
