From 765c0991e1325e5a60982a416e4b2876424a07e4 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:01:57 -0400 Subject: [PATCH] python3-debian: rebuild for Python 3.12 --- srcpkgs/python3-debian/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/python3-debian/template b/srcpkgs/python3-debian/template index 0f25ebc788d..6f400d93200 100644 --- a/srcpkgs/python3-debian/template +++ b/srcpkgs/python3-debian/template @@ -1,7 +1,7 @@ # Template file for 'python3-debian' pkgname=python3-debian version=0.1.49 -revision=1 +revision=2 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-chardet" @@ -11,10 +11,12 @@ maintainer="Orphaned " license="GPL-2.0-or-later" homepage="https://pypi.org/project/python-debian" changelog="https://salsa.debian.org/python-debian-team/python-debian/raw/master/debian/changelog" -distfiles="https://salsa.debian.org/python-debian-team/python-debian/-/archive/${version}/python-debian-${version}.tar.gz" -checksum=d4ae0ea1038c0eaefaa31452bead700df132513ebb350bed1396fafd94401a61 +distfiles="${PYPI_SITE}/p/python-debian/python-debian-${version}.tar.gz" +checksum=8cf677a30dbcb4be7a99536c17e11308a827a4d22028dc59a67f6c6dd3f0f58c post_patch() { - sed -e "s/__CHANGELOG_VERSION__/${version}/" lib/debian/_version.py.in \ - > lib/debian/_version.py + cat > lib/debian/_version.py <<-EOF + """ Version of the package """ + __version__ = '${version}' + EOF }