Merge pull request #314743 from Moraxyc/fix-pypdf2
python3Packages.pypdf2: fix
This commit is contained in:
commit
0ea4d43883
@ -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" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user