diff options
author | Guillaume Le Vaillant <glv@posteo.net> | 2025-04-22 11:22:00 +0200 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2025-04-22 11:22:00 +0200 |
commit | 0c4d0a702bede28cf0794dfe491c6a4602b61d44 (patch) | |
tree | aaaa853c5d2ac41615c6082dc7bd61cd66db31b6 | |
parent | 820ac9ba3da1c6b8b50516b25170602f2f41042d (diff) |
gnu: ocrodjvu: Fix build with python 3.11.
* gnu/packages/djvu.scm (ocrodjvu)[arguments]: Add 'fix-for-python-3.11'
phase.
Change-Id: Ib15da26513e9cd4075837037b43bd113e74716d4
-rw-r--r-- | gnu/packages/djvu.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm index 15c3a35542..324febbf10 100644 --- a/gnu/packages/djvu.scm +++ b/gnu/packages/djvu.scm @@ -396,6 +396,12 @@ and background layers of images, which can then be encoded into a DjVu file.") #:phases #~(modify-phases %standard-phases (delete 'configure) + (add-after 'unpack 'fix-for-python-3.11 + (lambda _ + (substitute* "lib/cli/ocrodjvu.py" + ;; The getargspec function has been removed in python 3.11. + (("init_args, _, _, _ = inspect.getargspec\\(cls.__init__\\)") + "init_args = inspect.getfullargspec(cls.__init__).args")))) (add-before 'check 'disable-failing-test (lambda _ (substitute* "tests/test_ipc.py" |