39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
# Contributor: Stunts <f.pinamartins[at]gmail.com>
|
|
# Contributor: Phil Schaf <flying-sheep[at]web.de>
|
|
# Contributor: Carl George < arch at cgtx dot us >
|
|
|
|
_pkgname=async-timeout
|
|
pkgname=python-async-timeout
|
|
pkgver=4.0.3
|
|
pkgrel=6
|
|
pkgdesc='Asyncio-compatible timeout class'
|
|
url='https://github.com/aio-libs/async-timeout'
|
|
arch=(any)
|
|
license=('Apache-2.0')
|
|
depends=('python')
|
|
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
|
|
checkdepends=('python-pytest' 'python-pytest-asyncio' 'python-pytest-aiohttp')
|
|
source=(https://github.com/aio-libs/async-timeout/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
|
sha256sums=('c63f1252d5fa878fdceb7a6894f1df6a73f92546e52a0b7999a5de429fd64ff8')
|
|
sha512sums=('cb5913647e99783ab6ef07901808baa09d7221fc5f1c6e49e7a3e35bf8b627a866277c6503418a00913c1a8f841514b0878a9469719ed7623d9d199de8df9ae8')
|
|
|
|
build() {
|
|
cd ${_pkgname}-${pkgver}
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd ${_pkgname}-${pkgver}
|
|
PYTHONPATH=. pytest --override-ini="addopts=" tests
|
|
}
|
|
|
|
|
|
package() {
|
|
cd ${_pkgname}-${pkgver}
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|