python-tempita: update to 0.6.0

This commit is contained in:
Mehdi Chinoune
2025-01-07 17:47:41 +00:00
committed by مهدي شينون (Mehdi Chinoune)
parent 001c0c0ab5
commit a4f8ebab5d

View File

@@ -4,29 +4,36 @@ _pyname=Tempita
_realname=tempita
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
pkgver=0.5.2
pkgrel=6
pkgver=0.6.0
pkgrel=1
epoch=1
pkgdesc="A lightweight unicode templating language (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://github.com/TurboGears/tempita'
msys2_references=(
'pypi: Tempita'
)
url='https://github.com/gjhiggins/tempita'
license=('spdx:MIT')
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-installer")
source=("https://pypi.debian.net/tempita/Tempita-${pkgver}-py3-none-any.whl")
sha256sums=('f4554840cb59c6b4a5df4fad27eea4e3cb47ca7089bfeefb5890ff1bb8af2117')
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-installer"
"${MINGW_PACKAGE_PREFIX}-python-setuptools")
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('76e15de0137e5011c22949cc15a5161f623fe6a31655751c6d765db6bbac27b6')
build() {
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
# No longer buildable from source:
# https://github.com/pypa/setuptools/issues/2788#issuecomment-921962154
cd "python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" *.whl
python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}