diff --git a/srcpkgs/canto-curses/patches/python-3.13.patch b/srcpkgs/canto-curses/patches/python-3.13.patch new file mode 100644 index 00000000000..bba7bfcc21e --- /dev/null +++ b/srcpkgs/canto-curses/patches/python-3.13.patch @@ -0,0 +1,20 @@ +Taken from Arch. Cf. + + https://gitlab.archlinux.org/archlinux/packaging/packages/canto-curses + +diff --unified --recursive --text --new-file canto-curses-0.9.9.orig/canto_curses/widecurse.c canto-curses-0.9.9/canto_curses/widecurse.c +--- canto-curses-0.9.9.orig/canto_curses/widecurse.c 2024-11-19 06:55:26.703201292 +0100 ++++ canto-curses-0.9.9/canto_curses/widecurse.c 2024-11-19 06:55:39.423227011 +0100 +@@ -6,9 +6,12 @@ + published by the Free Software Foundation. + */ + ++#define NCURSES_INTERNALS 1 + #include ++#include + #include + #include ++#include + + static PyObject *py_wcwidth(PyObject * self, PyObject * args) + { diff --git a/srcpkgs/canto-curses/template b/srcpkgs/canto-curses/template index ffe8a687fdc..0b3ce4c3c0d 100644 --- a/srcpkgs/canto-curses/template +++ b/srcpkgs/canto-curses/template @@ -1,7 +1,7 @@ # Template file for 'canto-curses' pkgname=canto-curses version=0.9.9 -revision=10 +revision=11 build_style=python3-module pycompile_dirs="/usr/lib/canto/plugins" hostmakedepends="python3-setuptools"