From 72bccd2baaa0b826e7906aa5fe399d31cfc81964 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Wed, 5 Jun 2024 15:16:57 +0000 Subject: [PATCH] python-hiredis: update to 2.3.2 --- mingw-w64-python-hiredis/PKGBUILD | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/mingw-w64-python-hiredis/PKGBUILD b/mingw-w64-python-hiredis/PKGBUILD index e1460dc4c6..706695f6ef 100644 --- a/mingw-w64-python-hiredis/PKGBUILD +++ b/mingw-w64-python-hiredis/PKGBUILD @@ -3,8 +3,8 @@ _realname=hiredis pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -pkgver=2.2.3 -pkgrel=2 +pkgver=2.3.2 +pkgrel=1 pkgdesc="Python wrapper for hiredis (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') @@ -12,7 +12,7 @@ msys2_references=( 'pypi: hiredis' ) url='https://github.com/redis/hiredis-py' -license=('BSD') +license=('spdx:MIT') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-python-installer" @@ -21,21 +21,16 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" "${MINGW_PACKAGE_PREFIX}-cc") checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest") source=("https://pypi.python.org/packages/source/${_realname:0:1}/${_realname}/${_realname}-${pkgver}.tar.gz") -sha256sums=('e75163773a309e56a9b58165cf5a50e0f84b755f6ff863b2c01a38918fe92daa') - -prepare() { - rm -rf python-build-${MSYSTEM} | true - cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" -} +sha256sums=('733e2456b68f3f126ddaf2cd500a33b25146c3676b97ea843665717bda0c5d43') build() { - cd "${srcdir}/python-build-${MSYSTEM}" + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation } check() { cd "${srcdir}/python-build-${MSYSTEM}" - ${MINGW_PREFIX}/bin/pytest test || warning 'Ignoring test_pyc failure' + ${MINGW_PREFIX}/bin/python -m pytest || warning "Tests failed" } package() {