I found the new Ply 2.0 (pure Python Lex/Yacc-like library) is out, so here is a slightly enhanced ebuild. It accepts new "doc" and "examples" IUSE. If you think it is wrong, I can update the ebuild.
Created attachment 96722 [details] Ply 2.0 ebuild plus patch The ebuild plus one patch that only renames licence to license in the file setup.py.
Version 2.2 is now in the tree. Thanks for reporting!