diff --git a/mingw-w64-python-asgiref/PKGBUILD b/mingw-w64-python-asgiref/PKGBUILD index bb6eb8303f..2a9c46ab88 100644 --- a/mingw-w64-python-asgiref/PKGBUILD +++ b/mingw-w64-python-asgiref/PKGBUILD @@ -3,20 +3,21 @@ _realname=asgiref pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") -pkgver=3.5.0 +pkgver=3.5.1 pkgrel=1 pkgdesc="Reference ASGI adapters and channel layers (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64') url='https://github.com/django/asgiref' -license=('BSD') +license=('spdx:BSD-3-Clause') depends=("${MINGW_PACKAGE_PREFIX}-python") makedepends=("${MINGW_PACKAGE_PREFIX}-python" "${MINGW_PACKAGE_PREFIX}-python-setuptools") -#checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-asyncio" "${MINGW_PACKAGE_PREFIX}-python-pytest") +checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-asyncio" + "${MINGW_PACKAGE_PREFIX}-python-pytest") options=('staticlibs' 'strip' '!debug') -source=("https://pypi.io/packages/source/a/asgiref/asgiref-${pkgver}.tar.gz") -sha256sums=('2f8abc20f7248433085eda803936d98992f1343ddb022065779f37c5da0181d0') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz") +sha256sums=('fddeea3c53fa99d0cdb613c3941cc6e52d822491fc2753fba25768fb5bf4e865') # Helper macros to help make tasks easier # apply_patch_with_msg() { @@ -38,33 +39,27 @@ del_file_exists() { # =========================================== # prepare() { - cd "${srcdir}" - - rm -rf python-build-${CARCH} | true - cp -r "${_realname}-${pkgver}" "python-build-${CARCH}" + rm -rf python-build-${MSYSTEM} | true + cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" # Set version for setuptools_scm export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} } -# Note that build() is sometimes skipped because it's done in -# the packages setup.py install for simplicity if you can do so. -# but sometimes, you want to do a check before install which would -# also trigger the build. build() { - msg "Python build for ${CARCH}" - cd "${srcdir}/python-build-${CARCH}" + msg "Python build for ${MSYSTEM}" + cd "${srcdir}/python-build-${MSYSTEM}" ${MINGW_PREFIX}/bin/python setup.py build } -#check() { -# msg "Python test for ${CARCH}" -# cd "${srcdir}/python-build-${CARCH}" -# PYTHONPATH=. ${MINGW_PREFIX}/bin/pytest . -#} +check() { + msg "Python test for ${MSYSTEM}" + cd "${srcdir}/python-build-${MSYSTEM}" + PYTHONPATH=. ${MINGW_PREFIX}/bin/pytest . +} package() { - cd "${srcdir}/python-build-${CARCH}" + cd "${srcdir}/python-build-${MSYSTEM}" MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \ ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \ --root="${pkgdir}" --optimize=1 --skip-build