Files
MINGW-packages/mingw-w64-python-execnet/PKGBUILD
Christoph Reiter ac24896827 Some Python updates
2025-12-05 12:20:21 +01:00

38 lines
1.4 KiB
Bash

# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>.
_realname=execnet
pkgbase=mingw-w64-python-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
pkgver=2.1.2
pkgrel=1
pkgdesc="Rapid multi-Python deployment (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
url='https://execnet.readthedocs.io/en/latest'
msys2_references=(
'purl: pkg:pypi/execnet'
)
license=('spdx:MIT')
depends=("${MINGW_PACKAGE_PREFIX}-python")
makedepends=("${MINGW_PACKAGE_PREFIX}-python-build"
"${MINGW_PACKAGE_PREFIX}-python-hatchling"
"${MINGW_PACKAGE_PREFIX}-python-hatch-vcs"
"${MINGW_PACKAGE_PREFIX}-python-installer")
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha512sums=('d2dd7854d5b7552f31347b00c664110560c128f15208584a0400e3a9689fdb6c20483487d103869fdfa929ce901ef62d5e4274e38b817c426a48a1c6dc6442b2')
build() {
cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}"
${MINGW_PREFIX}/bin/python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/python-build-${MSYSTEM}"
MSYS2_ARG_CONV_EXCL="--prefix=" \
${MINGW_PREFIX}/bin/python -m installer --prefix=${MINGW_PREFIX} \
--destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
}