yarl 1.5.1
This commit is contained in:
46
mingw-w64-python-yarl/PKGBUILD
Normal file
46
mingw-w64-python-yarl/PKGBUILD
Normal file
@@ -0,0 +1,46 @@
|
||||
# Maintainer: Sarah Ottinger <schalaalexiazeal@gmail.com>
|
||||
|
||||
_realname=yarl
|
||||
pkgbase=mingw-w64-python-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||
provides=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
conflicts=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
replaces=("${MINGW_PACKAGE_PREFIX}-python3-${_realname}")
|
||||
pkgver=1.5.1
|
||||
pkgrel=1
|
||||
pkgdesc='Yet another URL library (mingw-w64)'
|
||||
arch=('any')
|
||||
url="https://github.com/aio-libs/yarl/"
|
||||
license=('Apache')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-python-idna" "${MINGW_PACKAGE_PREFIX}-python-multidict" "${MINGW_PACKAGE_PREFIX}-python-typing_extensions")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-python-setuptools" "${MINGW_PACKAGE_PREFIX}-cython")
|
||||
checkdepends=("${MINGW_PACKAGE_PREFIX}-python-pytest-runner")
|
||||
source=("https://github.com/aio-libs/yarl/archive/v${pkgver}/yarl-${pkgver}.tar.gz")
|
||||
sha256sums=('80a0a8db82d3161cb2afe84b5ff8541b6f59f565caf26d416bca37ff05f06949')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir"
|
||||
rm -rf python-build-${CARCH} | true
|
||||
cp -r "${_realname}-${pkgver}" "python-build-${CARCH}"
|
||||
}
|
||||
|
||||
build() {
|
||||
msg "Python build for ${CARCH}"
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
sed 's| .install-cython ||g' -i Makefile
|
||||
make cythonize
|
||||
LANG=en_US.UTF-8 ${MINGW_PREFIX}/bin/python setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
${MINGW_PREFIX}/bin/python setup.py test || warning "Tests failed"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/python-build-${CARCH}"
|
||||
MSYS2_ARG_CONV_EXCL="--prefix=;--install-scripts=;--install-platlib=" \
|
||||
LANG=en_US.UTF-8 ${MINGW_PREFIX}/bin/python setup.py install --prefix=${MINGW_PREFIX} \
|
||||
--root="${pkgdir}" --optimize=1 --skip-build
|
||||
install -Dm644 LICENSE "${pkgdir}${MINGW_PREFIX}/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
Reference in New Issue
Block a user