From 77bc37f75150f0edcb1dab66e32b90646ca609d4 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:03:10 -0400 Subject: [PATCH] python3-pyFFTW: rebuild for Python 3.12 --- srcpkgs/python3-pyFFTW/patches/py312.patch | 14 ++++++++++++++ srcpkgs/python3-pyFFTW/template | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/python3-pyFFTW/patches/py312.patch diff --git a/srcpkgs/python3-pyFFTW/patches/py312.patch b/srcpkgs/python3-pyFFTW/patches/py312.patch new file mode 100644 index 00000000000..bd7a234e65d --- /dev/null +++ b/srcpkgs/python3-pyFFTW/patches/py312.patch @@ -0,0 +1,14 @@ +--- a/versioneer.py ++++ b/versioneer.py +@@ -339,9 +339,9 @@ + # configparser.NoOptionError (if it lacks "VCS="). See the docstring at + # the top of versioneer.py for instructions on writing your setup.cfg . + setup_cfg = os.path.join(root, "setup.cfg") +- parser = configparser.SafeConfigParser() ++ parser = configparser.ConfigParser() + with open(setup_cfg, "r") as f: +- parser.readfp(f) ++ parser.read_file(f) + VCS = parser.get("versioneer", "VCS") # mandatory + + def get(parser, name): diff --git a/srcpkgs/python3-pyFFTW/template b/srcpkgs/python3-pyFFTW/template index 055a53fe833..ba1f6fc9e15 100644 --- a/srcpkgs/python3-pyFFTW/template +++ b/srcpkgs/python3-pyFFTW/template @@ -1,7 +1,7 @@ # Template file for 'python3-pyFFTW' pkgname=python3-pyFFTW version=0.13.1 -revision=1 +revision=2 build_style=python3-module hostmakedepends="python3-setuptools python3-Cython0.29 python3-numpy" makedepends="fftw-devel python3-devel" @@ -12,7 +12,7 @@ maintainer="Andrew J. Hesford " license="BSD-3-Clause" homepage="https://github.com/pyFFTW/pyFFTW" distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=2407efb787c06504f764e22364be015961d7161b9cda25ba261d5c425e956089 +checksum=ffc1b3e7f4f74ee38716d668d7606b5fbfded58343655c160c3644fc4acf5d55 pre_check() { cp build/lib*/pyfftw/pyfftw.*.so pyfftw