From 9a95e9e6635c37da91a060968bff1be5502114d0 Mon Sep 17 00:00:00 2001 From: Konstantin Podsvirov Date: Wed, 15 Oct 2025 22:41:26 +0300 Subject: [PATCH] [new package] python-aio-pika 9.5.7 --- mingw-w64-python-aio-pika/PKGBUILD | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 mingw-w64-python-aio-pika/PKGBUILD diff --git a/mingw-w64-python-aio-pika/PKGBUILD b/mingw-w64-python-aio-pika/PKGBUILD new file mode 100644 index 0000000000..02114bf45e --- /dev/null +++ b/mingw-w64-python-aio-pika/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Konstantin Podsvirov + +_realname=aio-pika +pkgbase=mingw-w64-python-${_realname} +pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}") +pkgver=9.5.7 +pkgrel=1 +pkgdesc="AMQP 0.9 client designed for asyncio and humans (mingw-w64)" +arch=('any') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') +url='https://docs.aio-pika.com/' +msys2_repository_url='https://github.com/mosquito/aio-pika' +license=('spdx:Apache-2.0') +depends=("${MINGW_PACKAGE_PREFIX}-python" + "${MINGW_PACKAGE_PREFIX}-python-aiormq" + "${MINGW_PACKAGE_PREFIX}-python-exceptiongroup" + "${MINGW_PACKAGE_PREFIX}-python-yarl") +makedepends=("${MINGW_PACKAGE_PREFIX}-python-build" + "${MINGW_PACKAGE_PREFIX}-python-installer" + "${MINGW_PACKAGE_PREFIX}-python-poetry-core" + "${MINGW_PACKAGE_PREFIX}-python-wheel") +options=('!strip') +source=("https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz") +sha256sums=('0569b59d3c7b36ca76abcb213cdc3677e2a4710a3c371dd27359039f9724f4ee') + +build() { + cp -r "${_realname/-/_}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" + + python -m build --wheel --skip-dependency-check --no-isolation +} + +package() { + cd "python-build-${MSYSTEM}" + + MSYS2_ARG_CONV_EXCL="--prefix=" \ + python -m installer --prefix=${MINGW_PREFIX} \ + --destdir="${pkgdir}" dist/*.whl + + install -Dm644 COPYING "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/COPYING" +}