Control: tags -1 patch

I've attached a suggested fix, in case it is helpful.
From 34b5af7218e8194e649f1c79aba9f584c859e74e Mon Sep 17 00:00:00 2001
From: Cordell Bloor <c...@slerp.xyz>
Date: Fri, 18 Apr 2025 14:58:52 -0600
Subject: [PATCH] python3-doxysphinx: add missing json5 and mpire dependencies

---
 debian/control                                |  2 ++
 .../patches/0005-json5-import-fallback.patch  | 27 +++++++++++++++++++
 debian/patches/series                         |  1 +
 3 files changed, 30 insertions(+)
 create mode 100644 debian/patches/0005-json5-import-fallback.patch

diff --git a/debian/control b/debian/control
index 699b441..6275c55 100644
--- a/debian/control
+++ b/debian/control
@@ -36,6 +36,8 @@ Architecture: all
 Depends:
  ${python3:Depends},
  ${misc:Depends},
+ python3-json5,
+ python3-mpire,
 Suggests:
  python-doxysphinx-doc,
 Description: Lightweight Doxygen extension for Sphinx
diff --git a/debian/patches/0005-json5-import-fallback.patch b/debian/patches/0005-json5-import-fallback.patch
new file mode 100644
index 0000000..f0c8d2d
--- /dev/null
+++ b/debian/patches/0005-json5-import-fallback.patch
@@ -0,0 +1,27 @@
+From: Cordell Bloor <c...@slerp.xyz>
+Date: Fri, 18 Apr 2025 14:56:23 -0600
+Subject: json5 import fallback
+
+The pyjson5 package is available on Debian is provided by python3-json5
+
+Forwarded: no
+---
+ doxysphinx/doxygen.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/doxysphinx/doxygen.py b/doxysphinx/doxygen.py
+index 08d5f68..699c224 100644
+--- a/doxysphinx/doxygen.py
++++ b/doxysphinx/doxygen.py
+@@ -17,7 +17,10 @@ from dataclasses import dataclass
+ from pathlib import Path
+ from typing import Any, Dict, List, Tuple, Union, cast
+ 
+-import pyjson5
++try:
++    import pyjson5
++except ImportError:
++    import json5 as pyjson5
+ 
+ from doxysphinx.utils.pathlib_fix import path_is_relative_to, path_resolve
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 332f138..90c0bd5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0003-Fix-acute-accent-in-manual-page.patch
 0003-remove-dependancy-on-sphinx-needs.patch
 0004-Remove-unreproducible-meta-tag.patch
+0005-json5-import-fallback.patch
-- 
2.49.0

Reply via email to