I've discussed this with upstream. The pdfrw support is entirely optional. It's there basically to avoid reinventing the wheel but upstream had to do that anyway due to bugs/limitations of pdfrw. A future version should include graceful handling of missing pdfrw, i.e. not require any specific patching on our end.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cd0e93b33c417e6dd69847c15dad8741fd82952 commit 1cd0e93b33c417e6dd69847c15dad8741fd82952 Author: Diogo Pereira <sir.suriv@gmail.com> AuthorDate: 2020-05-24 15:44:02 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2020-06-17 17:00:23 +0000 media-gfx/img2pdf: version bump to 0.3.6 - Remove dependency on dev-python/pdfrw Closes: https://bugs.gentoo.org/718690 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Diogo Pereira <sir.suriv@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/15955 Signed-off-by: Joonas Niilola <juippis@gentoo.org> media-gfx/img2pdf/Manifest | 1 + media-gfx/img2pdf/img2pdf-0.3.6.ebuild | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+)