diff mbox series

[meta-python] python3-netaddr: add missing RDEPENDS on python3-pprint

Message ID 20250325210233.1083451-1-ravi@prevas.dk
State Accepted
Headers show
Series [meta-python] python3-netaddr: add missing RDEPENDS on python3-pprint | expand

Commit Message

Rasmus Villemoes March 25, 2025, 9:02 p.m. UTC
From: Rasmus Villemoes <ravi@prevas.dk>

core.py in the netaddr package has

   import pprint as _pprint

and so I hit

    from netaddr import OUI
  File "/usr/lib/python3.12/site-packages/netaddr/__init__.py", line 76, in <module>
    from netaddr.core import (
  File "/usr/lib/python3.12/site-packages/netaddr/core.py", line 9, in <module>
    import pprint as _pprint
ModuleNotFoundError: No module named 'pprint'

Add the missing RDEPENDS.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
---
 meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb b/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
index 8b486d26ff..256b38a135 100644
--- a/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
+++ b/meta-python/recipes-devtools/python/python3-netaddr_1.3.0.bb
@@ -6,6 +6,10 @@  SRC_URI[sha256sum] = "5c3c3d9895b551b763779ba7db7a03487dc1f8e3b385af819af341ae9e
 
 inherit pypi python_setuptools_build_meta ptest-python-pytest
 
+RDEPENDS:${PN} += " \
+    python3-pprint \
+"
+
 do_install_ptest:append () {
     install -d ${D}${PTEST_PATH}/tests
     cp -rf ${S}/netaddr/tests/* ${D}${PTEST_PATH}/tests/