python3.pkgs.pypdf2: 2.5.0 -> 2.8.0

This commit is contained in:
Martin Weinelt 2022-07-25 01:02:21 +02:00
parent 90e512742c
commit 13981cabc6

View file

@ -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";