* add python-aiohappyeyeballs
This commit is contained in:
parent
8f492de8d9
commit
bc3e5096dd
18
python/python-aiohappyeyeballs/.SRCINFO
Normal file
18
python/python-aiohappyeyeballs/.SRCINFO
Normal file
@ -0,0 +1,18 @@
|
||||
pkgbase = python-aiohappyeyeballs
|
||||
pkgdesc = Happy Eyeballs for asyncio
|
||||
pkgver = 2.4.3
|
||||
pkgrel = 2
|
||||
url = https://github.com/aio-libs/aiohappyeyeballs
|
||||
arch = any
|
||||
license = PSF-2.0.1
|
||||
checkdepends = python-pytest
|
||||
checkdepends = python-pytest-asyncio
|
||||
makedepends = git
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-poetry-core
|
||||
depends = python
|
||||
source = git+https://github.com/aio-libs/aiohappyeyeballs.git#tag=v2.4.3
|
||||
b2sums = b27eb3fb949fb8f2b7fd91cc29b9fa6cb4aec29b75d10fa12ab882163617032b41e157d0b4ee486b4e2f24c116494970600a386b30e88e9114a6ce30033f225a
|
||||
|
||||
pkgname = python-aiohappyeyeballs
|
46
python/python-aiohappyeyeballs/PKGBUILD
Normal file
46
python/python-aiohappyeyeballs/PKGBUILD
Normal file
@ -0,0 +1,46 @@
|
||||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
||||
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
||||
# Contributor: Łukasz Tuz <lukasz.tuz@gmail.com>
|
||||
|
||||
pkgname=python-aiohappyeyeballs
|
||||
_name=${pkgname#python-}
|
||||
pkgver=2.4.3
|
||||
pkgrel=2
|
||||
pkgdesc='Happy Eyeballs for asyncio'
|
||||
arch=(any)
|
||||
url=https://github.com/aio-libs/aiohappyeyeballs
|
||||
license=(PSF-2.0.1)
|
||||
depends=(python)
|
||||
makedepends=(
|
||||
git
|
||||
python-build
|
||||
python-installer
|
||||
python-poetry-core
|
||||
)
|
||||
checkdepends=(
|
||||
python-pytest
|
||||
python-pytest-asyncio
|
||||
)
|
||||
source=("git+$url.git#tag=v$pkgver")
|
||||
b2sums=('b27eb3fb949fb8f2b7fd91cc29b9fa6cb4aec29b75d10fa12ab882163617032b41e157d0b4ee486b4e2f24c116494970600a386b30e88e9114a6ce30033f225a')
|
||||
|
||||
build() {
|
||||
cd "$_name"
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_name"
|
||||
# Override addopts as they invoke coverage testing
|
||||
pytest --override-ini="addopts=-v -Wdefault"
|
||||
}
|
||||
|
||||
package() {
|
||||
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
||||
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
||||
ln -s "$site_packages"/"$_name"-$pkgver.dist-info/LICENSE \
|
||||
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
|
||||
cd "$_name"
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user