dev-python/pygments is needed for the compile to finish. Reproducible: Always Steps to Reproduce: 1. unmerge pygments 2. emerge pastedeploy 3.
Created attachment 151571 [details, diff] Add pygments to the DEPENDS.
pygments is only needed when doc USE flag is set so I modified your patch a bit and applied. Thanks for reporting :)