python-ubus: backport patch for newer Python
authorAlexandru Ardelean <redacted>
Fri, 10 Apr 2026 15:30:15 +0000 (18:30 +0300)
committerAlexandru Ardelean <redacted>
Mon, 13 Apr 2026 05:27:10 +0000 (08:27 +0300)
commit29e685e1f852a0f74afc9f22d07f739d01b098b1
treea1674c52a7c55d6fab2ed69e16de638fd6c759e4
parent7e99a65d720f829b247893aa511bf035af85cd40
python-ubus: backport patch for newer Python

Build is failing for a while now with error:
```
14.3.0_musl/usr/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-14.3.0_musl/include -I/builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc_gcc-14.3.0_musl/include/fortify -I/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/usr/include/python3.14 -fPIC -I/builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc_musl/usr/include/python3.14 -c ./ubus_python.c -o build/temp.linux-mipsel-cpython-314/ubus_python.o
./ubus_python.c: In function 'ubus_python_add':
./ubus_python.c:1081:17: error: implicit declaration of function 'PyEval_CallMethod'; did you mean 'PyObject_CallMethod'? [-Wimplicit-function-declaration]
 1081 |                 PyEval_CallMethod(python_alloc_list, "pop", "");
      |                 ^~~~~~~~~~~~~~~~~
      |                 PyObject_CallMethod
error: command '/builder/shared-workdir/build/sdk/staging_dir/toolc
```

This has been fixed on version 0.1.3, but that hasn't been
published to pypi yet.

Also add test.sh

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-ubus/Makefile
lang/python/python-ubus/patches/0001-make-project-compatible-with-python3.13.patch [new file with mode: 0644]
lang/python/python-ubus/test.sh [new file with mode: 0755]
git clone https://git.99rst.org/PROJECT