blob: 0c6283385f97f264e4e9dd85e1826527dd4add83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# 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 >
# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
_name=async-timeout
pkgname=python-$_name
pkgver=5.0.1
pkgrel=2
pkgdesc='Timeout context manager for asyncio programs.'
arch=('any')
url='https://github.com/aio-libs/async-timeout'
license=('Apache-2.0')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-pytest-asyncio')
source=("https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/${_name//-/_}-$pkgver.tar.gz")
sha256sums=('d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3')
build() {
cd "$srcdir"/${_name//-/_}-$pkgver
python -m build --wheel --no-isolation
}
check(){
local pytest_options=(
-vv
--disable-warnings
--override-ini="addopts="
)
cd "$srcdir"/${_name//-/_}-$pkgver
PYTHONPATH=$PWD pytest "${pytest_options[@]}" tests
}
package() {
cd "$srcdir"/${_name//-/_}-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|