diff --git a/pkgs/development/python-modules/xhtml2pdf/default.nix b/pkgs/development/python-modules/xhtml2pdf/default.nix
index 78b7761ae6c2..c7f768ab2a8a 100644
--- a/pkgs/development/python-modules/xhtml2pdf/default.nix
+++ b/pkgs/development/python-modules/xhtml2pdf/default.nix
@@ -5,7 +5,7 @@
, html5lib
, pillow
, pyhanko
-, pypdf3
+, pypdf
, pytestCheckHook
, python-bidi
, pythonOlder
@@ -34,7 +34,7 @@ buildPythonPackage rec {
html5lib
pillow
pyhanko
- pypdf3
+ pypdf
python-bidi
reportlab
svglib