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 }