about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ocrmypdf
diff options
context:
space:
mode:
authorAustin Butler <austinabutler@gmail.com>2022-03-23 10:21:23 -0700
committerAustin Butler <austinabutler@gmail.com>2022-03-23 10:21:23 -0700
commit5d10edd2605e8e09e882888183176ad9daaa5961 (patch)
tree34809852d7cf99a8772f6bdc62d7134f6bad6f50 /pkgs/development/python-modules/ocrmypdf
parent7076d82805693b8d3c37d00e68145c5c2a367cbc (diff)
ocrmypdf: relax pdfminer version requirements
Diffstat (limited to 'pkgs/development/python-modules/ocrmypdf')
-rw-r--r--pkgs/development/python-modules/ocrmypdf/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix
index a268f34cc71ab..fe5211802807d 100644
--- a/pkgs/development/python-modules/ocrmypdf/default.nix
+++ b/pkgs/development/python-modules/ocrmypdf/default.nix
@@ -80,6 +80,12 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
+  postPatch = ''
+    # https://github.com/ocrmypdf/OCRmyPDF/issues/933
+    substituteInPlace setup.cfg \
+      --replace "pdfminer.six!=20200720,>=20191110,<=20211012" "pdfminer.six!=20200720,>=20191110,<=20220319"
+  '';
+
   pythonImportsCheck = [
     "ocrmypdf"
   ];