Merge pull request #314743 from Moraxyc/fix-pypdf2

python3Packages.pypdf2: fix
This commit is contained in:
Pol Dellaiera 2024-06-09 09:25:49 +02:00 committed by GitHub
commit 0ea4d43883
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,18 +1,17 @@
{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
lib,
pythonOlder,
typing-extensions,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "pypdf2";
version = "3.0.1";
format = "pyproject";
pyproject = true;
src = fetchPypi {
pname = "PyPDF2";
@ -22,9 +21,10 @@ buildPythonPackage rec {
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
dependencies = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeCheckInputs = [ unittestCheckHook ];
# no test
doCheck = false;
pythonImportsCheck = [ "PyPDF2" ];