python3-debian: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:01:57 -04:00
parent 94fde08c54
commit 765c0991e1

View file

@ -1,7 +1,7 @@
# Template file for 'python3-debian' # Template file for 'python3-debian'
pkgname=python3-debian pkgname=python3-debian
version=0.1.49 version=0.1.49
revision=1 revision=2
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools" hostmakedepends="python3-setuptools"
depends="python3-chardet" depends="python3-chardet"
@ -11,10 +11,12 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
homepage="https://pypi.org/project/python-debian" homepage="https://pypi.org/project/python-debian"
changelog="https://salsa.debian.org/python-debian-team/python-debian/raw/master/debian/changelog" 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" distfiles="${PYPI_SITE}/p/python-debian/python-debian-${version}.tar.gz"
checksum=d4ae0ea1038c0eaefaa31452bead700df132513ebb350bed1396fafd94401a61 checksum=8cf677a30dbcb4be7a99536c17e11308a827a4d22028dc59a67f6c6dd3f0f58c
post_patch() { post_patch() {
sed -e "s/__CHANGELOG_VERSION__/${version}/" lib/debian/_version.py.in \ cat > lib/debian/_version.py <<-EOF
> lib/debian/_version.py """ Version of the package """
__version__ = '${version}'
EOF
} }