It is a common pattern in pipelines (and in spider middlewares as well) to use spider attributes to decide what to do:
class MyPipeline:
def process_item(self, item, spider):
if getattr(spider, 'my_pipeline_enabled', False):
# faz a coisa aqui
In this way, although the pipeline is enabled in the entire project, you can use the my_pipeline_enabled
attribute to enable the pipeline for just the spiders you want.
You can also expand this code to consider a setting, if necessary.
In Scrapy 0.25+ (not yet released, for now just by taking the Git repo), there is also the alternative of using settings in the spider that take precedence over those of the project.