diff --git a/srcpkgs/coccigrep/patches/python3.12.patch b/srcpkgs/coccigrep/patches/python3.12.patch new file mode 100644 index 00000000000..75f662f5a94 --- /dev/null +++ b/srcpkgs/coccigrep/patches/python3.12.patch @@ -0,0 +1,11 @@ +--- ./src/coccigrep.py.orig 2023-09-29 14:43:43.818620944 -0400 ++++ ./src/coccigrep.py 2023-09-29 14:44:02.016730018 -0400 +@@ -15,7 +15,7 @@ + # 02110-1301, USA. + + try: +- from configparser import SafeConfigParser ++ from configparser import ConfigParser as SafeConfigParser + except Exception: + from ConfigParser import SafeConfigParser + from os import unlink, path, listdir, getcwd diff --git a/srcpkgs/coccigrep/template b/srcpkgs/coccigrep/template index a0b1b75045d..b651a489c68 100644 --- a/srcpkgs/coccigrep/template +++ b/srcpkgs/coccigrep/template @@ -1,7 +1,7 @@ # Template file for 'coccigrep' pkgname=coccigrep version=1.20 -revision=4 +revision=5 build_style=python3-module hostmakedepends="python3-setuptools" depends="coccinelle python3-Pygments"