[new package] python-aio-pika 9.5.7
This commit is contained in:
parent
1d098659ee
commit
9a95e9e663
40
mingw-w64-python-aio-pika/PKGBUILD
Normal file
40
mingw-w64-python-aio-pika/PKGBUILD
Normal file
@ -0,0 +1,40 @@
|
||||
# Maintainer: Konstantin Podsvirov <konstantin@podsvirov.su>
|
||||
|
||||
_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"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user