diff --git a/pkgs/development/python-modules/pypdf2/default.nix b/pkgs/development/python-modules/pypdf2/default.nix index 8eb24dbe3385..c5c271c46276 100644 --- a/pkgs/development/python-modules/pypdf2/default.nix +++ b/pkgs/development/python-modules/pypdf2/default.nix @@ -1,29 +1,35 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder , glibcLocales +, typing-extensions , python , isPy3k }: buildPythonPackage rec { pname = "PyPDF2"; - version = "2.5.0"; + version = "2.8.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-WAKx9A+nm+G1q57claTn9+czmVidtPDmbKgx9Ennos0="; + sha256 = "sha256-ad39ck3f4HAQ7zpWyVvxIYVT7Anig2Nuzw8HLsEZWZo="; }; LC_ALL = "en_US.UTF-8"; buildInputs = [ glibcLocales ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ + typing-extensions + ]; + checkPhase = '' - ${python.interpreter} -m unittest discover -s Tests + ${python.interpreter} -m unittest discover ''; # Tests broken on Python 3.x - doCheck = !(isPy3k); + #doCheck = !(isPy3k); meta = with lib; { description = "A Pure-Python library built as a PDF toolkit";